autoConnect? | boolean | Open the socket when a subscription is registered and none is open (default: true). |
reconnectAttempts? | number | Maximum reconnection attempts (default: 5; Infinity never gives up) |
reconnectDelay? | number | Delay before the first reconnection attempt in ms (default: 2000) |
reconnectDelayMax? | number | Longest delay between reconnection attempts in ms (socket.io's default: 5000) |
subscriptionTimeout? | number | How long a room join or an authentication may wait for the server's answer in ms (default: 10000) |
tokenProvider? | () => Promise<string | null> | The JWT to authenticate with, asked for whenever the service authenticates without being handed a token (and on every reconnect). It must answer with the token current at that moment. null: none. |
url | string | Stream WebSocket server URL (SEPARATE from bundleBaseUrl) |