data-channel

Turn a data channel into a stream

npm install data-channel
2 downloads in the last day
230 downloads in the last week
756 downloads in the last month

data-channel

Turn a data channel into a stream

Example

var DataChannel = require("data-channel")

var pc = getPeerConnection(...)
    , channel = pc.createDataChannel
    , stream = DataChannel(channel)

stream.write("STREAM ALL THE THINGS")

Installation

npm install data-channel

Contributors

  • Raynos

MIT Licenced

npm loves you