Unnecessary MozWebSocket in the WebSocket demo

WebSocket is implemented in all modern web browsers.
This commit is contained in:
Ozan Yerli 2013-04-21 21:30:23 +03:00
parent e4bba5ce21
commit 449652b603
1 changed files with 1 additions and 5 deletions

View File

@ -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));
}