aljanabim / simple_webrtc_signaling_server

A WebRTC signaling server implemented in Node.js with Socket.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trying to start an example client gives the error: "Connection error xhr poll error"

dylanatkeylogic opened this issue · comments

$ yarn client2
yarn run v1.22.19
warning ....\package.json: No license field
$ nodemon ./examples/example-client2.js
[nodemon] 2.0.7
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node ./examples/example-client2.js
Connection error xhr poll error
[nodemon] clean exit - waiting for changes before restart

I got both examples working by replacing 3031 to 3030 (in both client example files). const port = process.env.PORT || 3031; . idk why 3031 was chosen instead of 3030, is this intended? Default env for dev server is port 3030.

Thanks for the suggestion. It works changing the port to 3030 in the client1 and client2