Skip to content

Signalling server to allow WebRTC peers handsake so they can exchange connection information. Component of Vertex

License

Notifications You must be signed in to change notification settings

CathalButler/webrtc-signalling-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webrtc-signalling-server

WebRTC's connections requires a signalling server to resolve how peers can connect over the internet. A signaling servers job is to act as a link in the middle of two peers that wish to connect to each other. WebRTC doesn’t specify a transport mechanism for signaling information, so a WebSocket is used to send and receive messages from client to server.The signalling server
does not need to understand or interpret the signalling data. SDP data is sent to enable WebRTC class, but the socket doesn’t need to worry about understanding it. What is important when the ICE instructs the websocket to send signaling data to another peer. When the other peer receives information it knows how to receive the information and deliver it to its ownICE subsystem. All the signalling server has to do is channel the information back and forth, the context doesn’t matter at all to the signalling server.

www.html5rocks.com

Environment Setup First

  • Install Git to clone the project with the repositories URL or download the .zip from the Github:
  • Install Node
  • cd /webrtc-signalling-server
  • Install npm packages
    • npm install
  • WebRTC requires a secure websocket(WSS) to allow peers to exchange data between each other so SSL certs need to be provided in order for the websocket to allow WebRTC communicate. Let's Encrypt provide SSL certs.

How to run

  • Run the server
    • node .
    • Server is served on localhost:8086

References

About

Signalling server to allow WebRTC peers handsake so they can exchange connection information. Component of Vertex

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%