Show More
@@ -20,6 +20,10 var IPython = (function (IPython) { | |||
|
20 | 20 | this.shell_channel = null; |
|
21 | 21 | this.iopub_channel = null; |
|
22 | 22 | this.running = false; |
|
23 | ||
|
24 | this.username = "username"; | |
|
25 | this.session_id = utils.uuid(); | |
|
26 | ||
|
23 | 27 | if (typeof(WebSocket) !== 'undefined') { |
|
24 | 28 | this.WebSocket = WebSocket |
|
25 | 29 | } else if (typeof(MozWebSocket) !== 'undefined') { |
@@ -34,8 +38,8 var IPython = (function (IPython) { | |||
|
34 | 38 | var msg = { |
|
35 | 39 | header : { |
|
36 | 40 | msg_id : utils.uuid(), |
|
37 |
username : |
|
|
38 | session: this.session_id, | |
|
41 | username : this.username, | |
|
42 | session : this.session_id, | |
|
39 | 43 | msg_type : msg_type |
|
40 | 44 | }, |
|
41 | 45 | content : content, |
General Comments 0
You need to be logged in to leave comments.
Login now