diff --git a/README.md b/README.md index a1c3f68..34508bd 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +Fork Information +=================== +This is a fork of the websocket multiplex library with changes to how stream is implemented. + WebSocket-multiplex =================== diff --git a/multiplex_server.js b/multiplex_server.js index f841246..c170dba 100644 --- a/multiplex_server.js +++ b/multiplex_server.js @@ -1,6 +1,8 @@ var events = require('events'); var stream = require('stream'); +var util = require('util'); + exports.MultiplexServer = MultiplexServer = function(service) { var that = this; @@ -57,7 +59,7 @@ var Channel = function(conn, topic, channels) { this.channels = channels; stream.Stream.call(this); }; -Channel.prototype = new stream.Stream(); +util.inherits(Channel, stream.Stream); Channel.prototype.write = function(data) { this.conn.write('msg,' + this.topic + ',' + data); diff --git a/package.json b/package.json index 708fd94..3fe171d 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,10 @@ "version" : "0.1.0", "description" : "WebSocket-multiplex is a thin library on top of SockJS that allows you to do multiplexing of many virtual WebSockets connection over a single physical one.", "keywords" : ["websockets", "websocket", "sockjs", "multiplex", "multiplexing"], - "homepage" : "https://github.com/sockjs/websocket-multiplex", + "homepage" : "https://github.com/omairqadir/websocket-multiplex", "repository": {"type": "git", - "url": "https://github.com/sockjs/websocket-multiplex.git"}, + "url": "https://github.com/omairqadir/websocket-multiplex.git"}, "dependencies": { "sockjs" : "*" },