We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc68c76 commit 0aa095cCopy full SHA for 0aa095c
jupyter_server/gateway/handlers.py
@@ -92,6 +92,8 @@ def on_message(self, message):
92
def write_message(self, message, binary=False):
93
"""Send message back to notebook client. This is called via callback from self.gateway._read_messages."""
94
if self.ws_connection: # prevent WebSocketClosedError
95
+ if isinstance(message, bytes):
96
+ binary = True
97
super(WebSocketChannelsHandler, self).write_message(message, binary=binary)
98
elif self.log.isEnabledFor(logging.DEBUG):
99
msg_summary = WebSocketChannelsHandler._get_message_summary(json_decode(utf8(message)))
0 commit comments