fix ws buf

This commit is contained in:
zhouyuyan
2017-09-08 16:04:39 +08:00
parent 35390baa92
commit 7d6fcb7d65
2 changed files with 3 additions and 1 deletions

View File

@@ -92,8 +92,10 @@ func (b *Broker) StartWebsocketListening() {
}
func (b *Broker) wsHandler(ws *websocket.Conn) {
// io.Copy(ws, ws)
atomic.AddUint64(&b.cid, 1)
go b.handleConnection(CLIENT, ws, b.cid)
ws.PayloadType = websocket.BinaryFrame
b.handleConnection(CLIENT, ws, b.cid)
}
func (b *Broker) StartClientListening(Tls bool) {

BIN
hmq

Binary file not shown.