We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
related: gorilla/websocket#843
If the pr in gorilla is accepted, we can just add a similar configuration, else we need to change the implementation using NextReader.
NextReader
The text was updated successfully, but these errors were encountered:
The code using NextReader will look something like this:
var buf bytes.Buffer for { t, r, err := s.conn.NextReader() if err != nil { s.melody.errorHandler(s, err) break } buf.Reset() buf.ReadFrom(r) message := buf.Bytes() switch t { case websocket.TextMessage: s.melody.messageHandler(s, message) case websocket.BinaryMessage: s.melody.messageHandlerBinary(s, message) } }
Sorry, something went wrong.
well, that's good
No branches or pull requests
related:
gorilla/websocket#843
If the pr in gorilla is accepted, we can just add a similar configuration, else we need to change the implementation using
NextReader
.The text was updated successfully, but these errors were encountered: