Skip to content

Commit

Permalink
set BinaryFrame type for websocket
Browse files Browse the repository at this point in the history
smallnest committed Oct 31, 2021
1 parent 77787df commit 36c8e98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.go
Original file line number Diff line number Diff line change
@@ -849,6 +849,7 @@ func (s *Server) ServeWS(conn *websocket.Conn) {
s.activeConn[conn] = struct{}{}
s.mu.Unlock()

conn.PayloadType = websocket.BinaryFrame
s.serveConn(conn)
}

0 comments on commit 36c8e98

Please sign in to comment.