Skip to content

Instantly share code, notes, and snippets.

@dsheeler
Last active December 27, 2015 21:59
Show Gist options
  • Save dsheeler/7395927 to your computer and use it in GitHub Desktop.
Save dsheeler/7395927 to your computer and use it in GitHub Desktop.
WebRTC API (Simplified, without rooms)
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