Skip to content

Commit

Permalink
Merge pull request tornadoweb#1022 from shinriyo/master
Browse files Browse the repository at this point in the history
tab to space
  • Loading branch information
bdarnell committed Mar 26, 2014
2 parents b5b2132 + 142b5fb commit 7508e21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demos/websocket/static/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ var updater = {

start: function() {
var url = "ws://" + location.host + "/chatsocket";
updater.socket = new WebSocket(url);
updater.socket.onmessage = function(event) {
updater.showMessage(JSON.parse(event.data));
}
updater.socket = new WebSocket(url);
updater.socket.onmessage = function(event) {
updater.showMessage(JSON.parse(event.data));
}
},

showMessage: function(message) {
Expand Down

0 comments on commit 7508e21

Please sign in to comment.