Skip to content

Commit

Permalink
Merge pull request #3 from dignifiedquire/patch-1
Browse files Browse the repository at this point in the history
fix: use binary frames instead of text frames
  • Loading branch information
whyrusleeping authored Sep 15, 2016
2 parents f87a840 + 598f265 commit 594a7ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/transport/websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ func (t *WebsocketTransport) wrapListener(l manet.Listener) *listener {

func (l *listener) handleWsConn(s *ws.Conn) {
ctx, cancel := context.WithCancel(context.Background())
s.PayloadType = ws.BinaryFrame

l.incoming <- &conn{
Conn: s,
Expand Down

0 comments on commit 594a7ef

Please sign in to comment.