WebRTC Chat
Demo
A password is required to use this demo
Technologies Used and Rationale
- Web APIs
- WebSockets
- Used to connect to signaling endpoint
- WebRTC
- Peer-to-peer communication API used to send message data between chat participants
- WebSockets
- AWS API Gateway and AWS Lambda
- Serverless signaling solution
- Relays connection data between peers
Implementation Notes
- Signaling walkthrough with Alice and Bob
- Alice connects to the signaler, then she gets back an ID
- Alice sends her ID to Bob via text message or messenger pigeon
- Bob connects to the signaler, and sends a connection offer routed through Alice's ID
- Alice receives the offer, alongside Bob's ID, from the signaler
- Alice creates an answer, and she sends it to Bob through the signaler using Bob's ID
- Bob receives the answer, and if all goes well, connection is established
- Both Alice and Bob disconnect from the signaler