mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
优化websocket服务
This commit is contained in:
@@ -83,7 +83,7 @@ func (slf *WebsocketServer) Init(pattern string, port uint16, messageReciver IMe
|
||||
slf.mapClient = make(map[uint64]*WSClient)
|
||||
slf.messageReciver = messageReciver
|
||||
|
||||
http.HandleFunc("/ws", slf.wsHandler)
|
||||
http.HandleFunc(slf.pattern, slf.wsHandler)
|
||||
}
|
||||
|
||||
func (slf *WebsocketServer) startListen() {
|
||||
|
||||
Reference in New Issue
Block a user