Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- websocketStream.on('data', function(data){
- console.log(data);
- });
- var s = new Writable({objectMode:true});
- s._write = function(chunk, enc, next){
- console.log(chunk); // an arraybufferview
- console.log(enc); // `buffer`
- next();
- }
- websocketStream.pipe(s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement