websocket-stream
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -34,4 +34,4 @@ var stream = require('stream') | ||
WebsocketStream.prototype.onMessage = function(e, flags) { | ||
this.emit('metadata', e, flags) | ||
this.emit('data', e.data) | ||
if (e.data) return this.emit('data', e.data, flags) | ||
this.emit('data', e, flags) | ||
} | ||
@@ -38,0 +38,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["websocket", "websockets", "stream", "streams", "realtime"], | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"_npmUser": { | ||
@@ -8,0 +8,0 @@ "name": "maxogden", |
@@ -35,4 +35,2 @@ # websocket-stream | ||
the `metadata` event has the full websocket event | ||
you can pass in a custom protocol to the constructor as the second argument | ||
@@ -39,0 +37,0 @@ |
54339
39