Provides underlying functions for ActorHandle. See ActorHandle for using type-safe remote procedure calls.
connect(): void
Do not call this directly.
Establishes a WebSocket connection to the server using the specified endpoint and protocol format.
disconnect(): Promise<void>
Disconnects the WebSocket connection.
Disposes of the ActorHandleRaw instance by disconnecting the WebSocket connection.
on<Args extends Array<unknown> = unknown[]>(eventName: string,callback: (...args: Args) => void,): EventUnsubscribe
Subscribes to an event that will happen repeatedly.
once<Args extends Array<unknown> = unknown[]>(eventName: string,callback: (...args: Args) => void,): EventUnsubscribe
Subscribes to an event that will be triggered only once.