This commit is contained in:
fatedier
2019-01-31 16:54:46 +08:00
parent 48990da22e
commit bbab3fe9ca
2 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,7 @@ type WebsocketListener struct {
httpMutex *http.ServeMux
}
// NewWebsocketListener to handle websocket connections
// ln: tcp listener for websocket connections
func NewWebsocketListener(ln net.Listener) (wl *WebsocketListener) {
wl = &WebsocketListener{