mirror of
https://github.com/nvms/prsm.git
synced 2025-12-15 15:50:53 +00:00
README
This commit is contained in:
parent
8d114a1285
commit
10c18f668e
@ -448,7 +448,7 @@ Client-side configuration looks like this:
|
||||
|
||||
```ts
|
||||
const client = new MeshClient("ws://localhost:8080", {
|
||||
pingTimeout: 30000, // ms between ping timeout checks
|
||||
pingTimeout: 30000, // ms between ping timeout checks - should match the server's pingInterval
|
||||
maxMissedPings: 1, // how many consecutive pings can be missed before reconnecting (default: 1)
|
||||
shouldReconnect: true, // auto-reconnect when connection is lost
|
||||
reconnectInterval: 2000, // ms between reconnection attempts
|
||||
|
||||
Loading…
Reference in New Issue
Block a user