$ gnpm install data-channel
Turn a data channel into a stream
var DataChannel = require("data-channel")
var pc = getPeerConnection(...)
, channel = pc.createDataChannel
, stream = DataChannel(channel)
stream.write("STREAM ALL THE THINGS")
npm install data-channel
Copyright 2013 - present © cnpmjs.org | Home |