Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.
/ polychat Public archive

The Kamel graduation project, sans API keys.

License

Notifications You must be signed in to change notification settings

worstpractice/polychat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kamel Graduation Project

Example WebSocket + WebRTC

This branch shows how WebRTC can be used to build a simple chat app. WebSockets can be used to exchange keys between peers to establish the WebRTC connection.

Initial Setup

Run the init script from the root directory:

./init.sh

Use the App

Open two browser tabs:

localhost:3000/#init
localhost:3000

In the first tab, wait for WebRTC meta data to appear at the top of the page and copy it.

In the second tab, paste the meta data into the Other ID field, then click connect. Wait for meta data to appear at the top of the page and copy it.

In the first tab, paste the meta data into the Other ID field, then click connect.

You should now be able to send messages from one tab to the other.

Related Links

WebRTC:

WebSockets:

About

The Kamel graduation project, sans API keys.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published