File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 13
13
from tornado .escape import json_decode , url_escape , utf8
14
14
from tornado .httpclient import HTTPRequest
15
15
from tornado .ioloop import IOLoop
16
- from traitlets import Bool , Instance , Int
16
+ from traitlets import Bool , Instance , Int , Unicode
17
17
18
18
from ..services .kernels .connection .base import BaseKernelWebsocketConnection
19
19
from ..utils import url_path_join
@@ -31,6 +31,11 @@ class GatewayWebSocketConnection(BaseKernelWebsocketConnection):
31
31
32
32
retry = Int (0 )
33
33
34
+ # When opening ws connection to gateway, server already negotiated subprotocol with notebook client.
35
+ # Same protocol must be used for client and gateway, so legacy ws subprotocol for client is enforced here.
36
+
37
+ kernel_ws_protocol = Unicode ("" , allow_none = True , config = True )
38
+
34
39
async def connect (self ):
35
40
"""Connect to the socket."""
36
41
# websocket is initialized before connection
You can’t perform that action at this time.
0 commit comments