Permalink
Browse files

demo using raw WebSocket connection after sockjs integration

  • Loading branch information...
1 parent bbfe2c7 commit 3d16fa7a107962279fc525dd39b3e56fa083377c @minrk committed Oct 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 IPython/frontend/html/notebook/static/js/kernel.js
@@ -125,8 +125,9 @@ var IPython = (function (IPython) {
var that = this;
this.stop_channels();
var ws_url = this.ws_url + this.kernel_url;
+ ws_url = ws_url.replace('http', 'ws');
console.log("Starting SockJS:", ws_url);
- this.shell_channel = new SockJS(ws_url + "/sock");
+ this.shell_channel = new WebSocket(ws_url + "/sock/websocket");
send_cookie = function(){
this.send(document.cookie);
};

0 comments on commit 3d16fa7

Please sign in to comment.