Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Webocket.send_binary() instead of Websocket.send()
websockify dropped support for text frames awhile back [1][2], possibly as of version 0.9.0 [3]. Attempts to send text frames to a sufficiently new websockify server result in the following error returned: Unsupported: Text frames are not supported and then the server closes the connection. This changes the client to call Webocket.send_binary() [4] instead of Websocket.send() in order to send binary data rather than text. websockify has (always?) supported receiving binary data so this should be backward compatible with older versions. Closes larsks#4 [1] novnc/websockify#365 [2] novnc/websockify@8eb5cb0 [3] novnc/websockify@8a69762 [4] https://websocket-client.readthedocs.io/en/latest/core.html#websocket._core.WebSocket.send_binary
- Loading branch information