From abee155a111becd254d592569a728443285ba105 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Sat, 15 Nov 2014 19:26:06 -0500 Subject: [PATCH] Websockets were not started correctly on QtWebKit 4 - Draft76 was added to support QtWebKit 4 (and hence PhantomJS) a little bit longer, but before this change kernel websockets failed to start on that platform. --- IPython/html/allow76.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/IPython/html/allow76.py b/IPython/html/allow76.py index 327fd8b86..67e87e8d9 100644 --- a/IPython/html/allow76.py +++ b/IPython/html/allow76.py @@ -69,8 +69,7 @@ class AllowDraftWebSocketHandler(WebSocketHandler): self.stream.set_close_callback(self.on_connection_close) if self.request.headers.get("Sec-WebSocket-Version") in ("7", "8", "13"): - self.ws_connection = WebSocketProtocol13( - self, compression_options=self.get_compression_options()) + self.ws_connection = WebSocketProtocol13(self) self.ws_connection.accept_connection() #--------------- BEGIN PATCH ---------------- elif (self.allow_draft76() and