Closed christopherjameshoward closed 1 year ago
https://github.com/jasonrbriggs/stomp.py/pull/422 has fixed one aspect of this (the receiving of binary messages) in a different way. However, that PR is still decoding and then re-encoding the data, which I would argue is unnecessary.
Also, that PR doesn't handle sending of binary messages.
Adds support for the sending and receiving of binary websocket messages.
There are two aspects to the fix:
binary_mode
boolean argument has been added toWSStompConnection
(defaulting toFalse
). If set toTrue
, then all websocket messages will be sent as binary (opcode 0x2), rather than as text (opcode 0x1)