JSPM

  • Created
  • Published
  • Downloads 205456
  • Score
    100M100P100Q163007F

Package Exports

  • websocket-stream

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (websocket-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

websocket-stream

npm install websocket-stream

use HTML5 websockets the node way -- with streams

var websocket = require('websocket-stream')
var ws = websocket('ws://realtimecats.com')
ws.pipe(somewhereAwesome)

ws is a stream and speaks stream events: data, error and end. that means you can pipe output to anything that accepts streams. you can also pipe data into streams (such as a webcam feed or audio data)

BSD LICENSE