Closed nikoloss closed 4 years ago
You can access the raw protocol by making your own connection class.
Make a subclass of Protocol::WebSocket::Connection
(or use it if you just want raw data).
https://github.com/socketry/async-websocket/blob/master/lib/async/websocket/connection.rb#L63-L79
https://github.com/socketry/async-websocket/blob/ede7d23a56fbb2f351a99e313bca0eb8f5cbc80c/lib/async/websocket/connection.rb#L63 Sorry for disturbing u, I'm using websocket for something like remote desktop, bin data transmission. Due to the jsonified data I have to decode them in addition. I think json here is a little redundant, raw message is suitable I can apply my own protocols or codecs