Go to file
Pierre Hubert 0ed864c7d3 Fix error 2019-01-25 18:28:51 +01:00
client Can close connection to signaling server 2019-01-25 15:13:47 +01:00
video-client Can close connection to signaling server 2019-01-25 15:13:47 +01:00
README.MD Fix error in README 2019-01-25 15:12:36 +01:00
config.js Initial commit - Added basic HTTP server 2019-01-19 08:24:49 +01:00
index.js Handles clients IDs 2019-01-19 10:53:09 +01:00
sockets.js Fix error 2019-01-25 18:28:51 +01:00

README.MD

NodeSignalExchanger

A lightweight node application that allows to exchange signals connection through websockets.

WARNING WARNING WARNING : Do not try to launch my project on a computer not connected to any network, it will not work (Firefox is unable to create Ice candidate on such configuration) !!!! (However, if you run your own STUN/TURN server, an Internet connection will not be required at all)

Requirements

sudo apt install nodejs node-express node-ws

Using for signaling

Installation

  • Install coturn: sudo apt install coturn
  • Add a client to coturn: sudo turnadmin -a -u anonymous -r anonymous.com -p anonymous

Running TURN server

sudo turnserver -o -a -f -r anonymous.com # Use -L option to specify an IP address

Run everything

Note : each one of the following command must be runned in a different terminal (at the root of the project) :

  • node ./
  • sudo turnserver -o -a -f -r anonymous.com
  • client/server.py to run simple text client OR video-client/server.py to experiment video call.

Note : you need to open two tabs of your browser pointing on the html file of the repositories. One must have the URL ending by .html and the other one by .html#1

Author

Pierre HUBERT 2019