Skip to content
New issue

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

Use Webocket.send_binary() instead of Websocket.send() #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

melwitt
Copy link

@melwitt melwitt commented Jun 21, 2022

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 #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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can I use novaconsole to interact with (send keystrokes to) an instance?
1 participant