Last active
December 27, 2015 21:59
-
-
Save dsheeler/7395927 to your computer and use it in GitHub Desktop.
WebRTC API (Simplified, without rooms)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
signal_type = [ CALL, ANSWER, HANGUP ] | |
user { | |
user_name; | |
} | |
connection { | |
string user[2]; | |
} | |
signal { | |
user from; | |
user to; | |
string sdp; | |
signal_type signal; | |
} | |
/webrtc: | |
/connections | |
list | |
/users: | |
list | |
/{user_name} | |
connections | |
register | |
unregister | |
call | |
answer | |
hangup | |
webrtc page queries users with /webrtc/users. presents a list of active webrtc users available to call | |
user can choose a name from list of other users and press call, initiating /users/{user_name}.call. | |
server sends message to called client. called client responds with /users/{user_name}.answer. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment