Skip to content

Add support for binary frames to websocket service

Rick Parrish requested to merge Ree/websocketservice-support-binary into master

websocketservice.js originally only supported text frames, which requires utf-8 encoding/decoding. This adds support for binary frames, which don't need encoding/decoding, so are simpler to work with and slightly faster.

Also change how some error conditions are handled -- shouldn't just log a debug message, they are unrecoverable errors and should be treated as such.

Merge request reports

Loading