-
Notifications
You must be signed in to change notification settings - Fork 1
gavofyork/RTCSocket
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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'}
About
No-fuss Javascipt P2P RTC data connection as a class.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published