Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Unnecessary MozWebSocket in the WebSocket demo #752

Merged
merged 1 commit into from

2 participants

Ozan Yerli Ben Darnell
Ozan Yerli

WebSocket is implemented in all modern web browsers.

Ozan Yerli oyerli Unnecessary MozWebSocket in the WebSocket demo
WebSocket is implemented in all modern web browsers.
449652b
Ben Darnell bdarnell merged commit 13ee29d into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 21, 2013
  1. Ozan Yerli

    Unnecessary MozWebSocket in the WebSocket demo

    oyerli authored
    WebSocket is implemented in all modern web browsers.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 5 deletions.
  1. +1 −5 demos/websocket/static/chat.js
6 demos/websocket/static/chat.js
View
@@ -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));
}
Something went wrong with that request. Please try again.