/**
 * In node.js we want to use the ws module for WebSocket. In the
 * browser we can just use the native WebSocket. Here we adapt
 * the browser's WebSocket interface to more closely match ws
 * so that we can use either.
 *
 * This module gets used by browserify, see package.json
 */

global.WebSocket.on = global.WebSocket.on || function(event, listener) {
  this.addEventListener(event, listener);
};

global.WebSocket.removeListener = global.WebSocket.removeListener || function(event, listener) {
  this.removeEventListener(event, listener);
};

global.WebSocket.once = global.WebSocket.once || function(event, listener) {
  var ws = this;
  this.addEventListener(event, function onEvent() {
    ws.removeEventListener(event, onEvent);
    listener.apply(null, arguments);
  });
};

module.exports = global.WebSocket;

@@ -299,16 +299,26 @@
 bSocket.
+prototype.
 on = glo
@@ -331,16 +331,26 @@
 bSocket.
+prototype.
 on %7C%7C fu
@@ -430,32 +430,42 @@
 lobal.WebSocket.
+prototype.
 removeListener =
@@ -482,16 +482,26 @@
 bSocket.
+prototype.
 removeLi
@@ -600,24 +600,34 @@
 l.WebSocket.
+prototype.
 once = globa
@@ -638,16 +638,26 @@
 bSocket.
+prototype.
 once %7C%7C 

Fix Issues #93 - Undefined is not a function for client-ws impl