Skip to content

Commit

Permalink
fix ws buf
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouyuyan committed Sep 8, 2017
1 parent 35390ba commit 7d6fcb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion broker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Binary file removed hmq
Binary file not shown.

0 comments on commit 7d6fcb7

Please sign in to comment.