-
Notifications
You must be signed in to change notification settings - Fork 49
Set up your own WebSockets and Stun Servers
Rohit joshi edited this page Jan 10, 2021
·
1 revision
To set up your own Signaling Server, you need to purchase source from our Website. There are 2 ways to set up the source on your server, the fastest way is to set up with Docker.
How to set up Websocket and Stun Servers with docker🐳?
- You need to create a docker network
docker network create skyrockets-webrtc-network
- Start the container via
docker-compose up -d
command - That's all :-)
How to set up WebSocket over SSL with Docker🔒?
- open docker-compose.yml file and add
volumes:
- ./ssl/path:/ssl
- Open websocket/server.js file and add the path of SSL file.
var options = {
key: fs.readFileSync("/ssl/privkey.pem"),
cert: fs.readFileSync("/ssl/cert.pem"),
ca: fs.readFileSync("/ssl/chain.pem")
};
- clone the repository
- install the npm packages -
npm install
- IOS: install the required pods by running command
npx pod-install
in the root directory
this project needs two config endpoints i.e - a)Socket Endpoint b)Stun or Turn server URL, you can find this config in CallScreen.js
as variable name STUN_SERVER and SOCKET_URL
- do a npm start in the root directory to start the metro server
Android: open the android folder in Android studio -> press the play button to run IOS: open the ios folder in Xcode and hit the play button to run the app
- you have to login with your unique id and give permission to access your camera
- after login you can call any other by entering his/her unique id (ids are case sensitive )
If you getting issue while running the app on your machine feel free to write us
Thanks,