You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all, thanks for the great project, I was halfway through implementing something similar myself when I found it.
I'm using it to proxy a VNC connection (like nbnovnc) which uses a binary websocket. I found that connection could be established but traffic would stop after the RFB handshake (which just states the protocol version in all ASCII characters).
I'd suggest we change type(message) is bytes to isinstance(message, bytes) which is the Python way of checking if something is an instance of a particular type in both cases.
Hi,
first of all, thanks for the great project, I was halfway through implementing something similar myself when I found it.
I'm using it to proxy a VNC connection (like nbnovnc) which uses a binary websocket. I found that connection could be established but traffic would stop after the RFB handshake (which just states the protocol version in all ASCII characters).
Turns out, binary messages from the backend are not relayed properly to the frontend. The reason is https://github.com/jupyterhub/nbserverproxy/blob/master/nbserverproxy/handlers.py#L163
Similar to when proxying from frontend to backend, it should instead be:
With that, e.g., nbnovnc runs perfectly again.
Cheers!
The text was updated successfully, but these errors were encountered: