优化模块功能

This commit is contained in:
boyce
2019-02-12 12:03:20 +08:00
parent 9b7fcf0e27
commit ba4b084085
4 changed files with 48 additions and 43 deletions

View File

@@ -51,10 +51,10 @@ func (slf *HttpServerService) initRouterHandler() http.Handler {
return cors.Handler(r)
}
func (slf *HttpServerService) OnRun() error {
func (slf *HttpServerService) OnRun() bool {
slf.httpserver.Start()
return nil
return false
}
func NewHttpServerService(port uint16) *HttpServerService {

View File

@@ -21,10 +21,10 @@ func (ws *WSServerService) OnInit() error {
return nil
}
func (ws *WSServerService) OnRun() error {
func (ws *WSServerService) OnRun() bool {
ws.wsserver.Start()
return nil
return false
}
func NewWSServerService(pattern string, port uint16, messageReciver network.IMessageReceiver, bEnableCompression bool) *WSServerService {