Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt

Use this file to discover all available pages before exploring further.

Register a callback for incoming WebSocket messages.

Parameters

PropertyTypeRequiredDescription
callbackFunctionYesHandler for messages

Callback Parameters

PropertyTypeDescription
dataString/ArrayBufferReceived message data

Code Example

my.onSocketMessage((res) => {
  console.log('Received:', res.data);
});