Giter Site home page Giter Site logo

boyquotes / webrtc-signalling-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heatxd/webrtc-signalling-server

0.0 0.0 0.0 9 KB

WebRTC-Signalling-Server originally built for a godot gamejam. might be rough around the edges.

License: MIT License

JavaScript 100.00%

webrtc-signalling-server's Introduction

WebRTC-Signalling-Server

WebRTC-Signalling-Server originally built for a godot gamejam. might be rough around the edges.

PLAYER COMMANDS                                   MESSAGE DATA
----------------------------------------------------------------------------
Register Player     \  ###!RP   \                 <PlayerName>
Create Room         \  ###!CR   \                    'null'
Join Room           \  ###!JR   \                  <RoomUUID>
Seal Room           \  ###!SR   \                    'null'
Send Message        \  ###!SM   \                  <Message>
Send Offer          \  ###!OO   \      {id:<RecipientID>,rtc:<WebRTCData>}
Send Answer         \  ###!AA   \      {id:<RecipientID>,rtc:<WebRTCData>}
Send Candidate      \  ###!CC   \      {id:<RecipientID>,rtc:<WebRTCData>}
----------------------------------------------------------------------------
SERVER RESPONSES
----------------------------------------------------------------------------
Register Player OK      \ ###!RPK   \             <PlayerID>
Register Player BAD     \ ###!RPB   \              <Reason>
Create Room  OK         \ ###!CRK   \             <RoomUUID>
Create Room  BAD        \ ###!CRB   \              <Reason>
Join Room  OK           \ ###!JRK   \           <[PlayerNames]>   
Join Room  BAD          \ ###!JRB   \              <Reason> 
Connected To Room       \ ###!CTR   \             <PlayerID>
Room Peer Connected     \ ###!RPC   \             <PlayerID>
Room Peer Disconnected  \ ###!RPD   \             <PlayerID>
Seal Room OK            \ ###!SRK   \               'null'
Seal Room BAD           \ ###!SRB   \              <Reason>
Room Message OK         \ ###!RMK   \              <Message>
Room Message BAD        \ ###!RMB   \              <Reason>
Issued Command BAD      \ ###!ICB   \              <Reason>
Player Timed Out        \ ###!PTO   \              <Reason>
Recieve Offer           \ ###!OOO   \   {id:<SenderID>,rtc:<WebRTCData>}
Recieve Answer          \ ###!AAA   \   {id:<SenderID,rtc:<WebRTCData>}
Recieve Candidate       \ ###!CCC   \   {id:<SenderID>,rtc:<WebRTCData>}
------------------------------------------------------------------------------
With All The WebRTC related commands, I dont disclose which data should be sent
since this signaling server doesn't care about the data of the message. It only
needs to relay the message to the designated client. thats why i just show it as
rtc.

Whenever the needed message data is 'null' means that no meaningful data is needed
for the command. for example the client should just send a json message with 
command:"##!CR" and data:"null". the server can also send a null response but 
only for the command Seal Room Ok.

webrtc-signalling-server's People

Contributors

heatxd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.