GitXplorerGitXplorer
g

RTCSocket

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
7560e639737f0bb60b601a20b5ce1beeeb1d1773

Demo added.

committed 12 years ago
Unverified
afa59f30b0c363cb39b59895a0f34835656ffddb

Readme.

committed 12 years ago
Unverified
fdb6df98f5df891d03e89112463dce61d1b04206

Initial commit.

committed 12 years ago

README

The README file for this repository.

RTCSocket: No-nonsense RTC P2P socket-like connection in Javascript. By Gav Wood, 2013 i@gavwood.com Licenced under the GNU GPL version 2.0

No connection wrangling required!

Example:

// Browser 1: var s = new RTCSocket(); var id = s.listen(function(f, o){ s.accept(f, o, console.log); } );

// Browser 2: var s = new RTCSocket(); s.connect(id, recv, console.log);

// Either browser if (s.isOpen()) s.send("Hello"); // other browser logs an event {data:'Hello'}