You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--port, -p`|`port`| Port to listen (number) |**Yes**||
99
99
|`--key, -k`|`key`| Connection key (string). Client must provide it to call API methods | No |`"peerjs"`|
100
-
|`--path`|`path`| Path (string). The server responds for requests to the root URL + path. **E.g.** Set the `path` to `/myapp` and run server on 9000 port via `peerjs --port 9000 --path /myapp` Then open http://127.0.0.1:9000/myapp - you should see a JSON reponse. | No |`"/"`|
100
+
|`--path`|`path`| Path (string). The server responds for requests to the root URL + path. **E.g.** Set the `path` to `/myapp` and run server on 9000 port via `peerjs --port 9000 --path /myapp` Then open http://127.0.0.1:9000/myapp - you should see a JSON response.| No |`"/"`|
101
101
|`--proxied`|`proxied`| Set `true` if PeerServer stays behind a reverse proxy (boolean) | No |`false`|
102
102
|`--expire_timeout, -t`|`expire_timeout`| The amount of time after which a message sent will expire, the sender will then receive a `EXPIRE` message (milliseconds). | No |`5000`|
103
103
|`--alive_timeout`|`alive_timeout`| Timeout for broken connection (milliseconds). If the server doesn't receive any data from client (includes `pong` messages), the client's connection will be destroyed. | No |`60000`|
0 commit comments