These are chat archives for andyet/SimpleWebRTC

12th
Feb 2015
Kevin Jahns
@dmonad
Feb 12 2015 11:55
Is there any API documentation for this? I want to send JSON objects to all peers / or only to one specific peer. How can I achieve this? I read in #32 that you support data channels now. But how to use it?
Philipp Hancke
@fippo
Feb 12 2015 23:06
@DadaMonad sendDirectlyToAll is what you want for sending to everyone -- it just calls peer.sendDirectly (use webrtc.webrtc.getPeers() to get a list of peers)
usually on the simplewebrtc datachannel