Skip to content

Commit

Permalink
websocket: don't send multi frames for compressed message
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed Sep 17, 2024
1 parent c5367d9 commit de9f897
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nbhttp/websocket/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ func (c *Conn) WriteMessage(messageType MessageType, data []byte) error {
} else {
cw.Close()
data = w.Bytes()
return c.writeFrame(messageType, true, true, data, true)
}
}

Expand Down

0 comments on commit de9f897

Please sign in to comment.