data-channel

Turn a data channel into a stream

MIT License

Downloads
643
Stars
17
Committers
4

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

Package Rankings
Top 5.61% on Npmjs.org