Skip to content

Commit

Permalink
compression
Browse files Browse the repository at this point in the history
  • Loading branch information
azonti committed Aug 19, 2019
1 parent 424d92c commit b4e6052
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ func New(
logger *zap.Logger) (*Handler, error) {

upgrader := websocket.Upgrader{
ReadBufferSize: BufferSize,
WriteBufferSize: BufferSize,
HandshakeTimeout: handshakeTimeout,
EnableCompression: true,
ReadBufferSize: BufferSize,
WriteBufferSize: BufferSize,
HandshakeTimeout: handshakeTimeout,
CheckOrigin: func(r *http.Request) bool {
return true
},
Expand Down

0 comments on commit b4e6052

Please sign in to comment.