MCPcopy Create free account
hub / github.com/Streamerbot/client /

Class

packages/client/src/ws/StreamerbotClient.ts:118–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 * @param options.autoReconnect - Whether to automatically reconnect to the WebSocket server if the connection is lost.
117 * @param options.retries - The number of reconnection attempts before giving up. A negative value means infinite retries.
118 * @param options.subscribe - Initial subscriptions to events upon connection.
119 * @param options.onConnect - Callback function to be called when the client successfully connects to the WebSocket server.
120 * @param options.onDisconnect - Callback function to be called when the client disconnects from the WebSocket server.
121 * @param options.onError - Callback function to be called when an error occurs.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected