{"repo":"peers/peerjs-server","free":true,"listed":false,"github":"https://github.com/peers/peerjs-server","clone":"git clone https://github.com/peers/peerjs-server.git","description":"Server for PeerJS","language":"TypeScript","stars":4695,"topics":["peerjs","webrtc","signaling","typescript","nodejs","server"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"PeerServer: A server for PeerJS PeerServer helps establishing connections between PeerJS clients. Data is not proxied through the server. Run your own server on Gitpod! https://peerjs.com Usage Run server Natively If you don't want to develop anything, just enter few commands below. 1. Install the package globally: 2. Run the server: 3. Check it: http://127.0.0.1:9000/myapp It should returns JSON with name, description and website fields. Docker Also, you can use Docker image to run a new container: Kubernetes Create a custom server: If you have your own server, you can attach PeerServer. 1. Install the package: 2. Use PeerServer object to create a new server: 3. Check it: http://127.0.0.1:9000/myapp It should returns JSON with name, description and website fields. Connecting to the server from client PeerJS: Config / CLI options You can provide config object to PeerServer function or specify options for peerjs CLI. CLI option JS option Description Required Default ------------------------ ------------------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- :------: :--------: --port, -p port Port to listen (number) Yes --key, -k key Connection key (string). Client must provide it to call API methods No \"peerjs\" --path path Path (string). The server responds for requests to the root ","default_branch":null,"files":null,"tree":[],"storefront":"/r/peers","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/peers/peerjs-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}