Permalink
Browse files

Unnecessary MozWebSocket in the WebSocket demo

WebSocket is implemented in all modern web browsers.
  • Loading branch information...
1 parent e4bba5c commit 449652b60330a295210186a8cc5ec42c44e66e4a @oyerli oyerli committed Apr 21, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 demos/websocket/static/chat.js
@@ -51,11 +51,7 @@ var updater = {
start: function() {
var url = "ws://" + location.host + "/chatsocket";
- if ("WebSocket" in window) {
- updater.socket = new WebSocket(url);
- } else {
- updater.socket = new MozWebSocket(url);
- }
+ updater.socket = new WebSocket(url);
updater.socket.onmessage = function(event) {
updater.showMessage(JSON.parse(event.data));
}

0 comments on commit 449652b

Please sign in to comment.