Optionaltoken: stringPrivate ReadonlyadapterPrivateisPrivate ReadonlymaxPrivatemaxPrivatemessagePrivatereconnectPrivatereconnectPrivate ReadonlytokenPrivate ReadonlywebsocketPrivate ReadonlywindowPrivatewsConnect to the WebSocket server
Disconnect from the WebSocket server
Clean up resources
PrivateflushFlush queued messages to the WebSocket
Handle incoming messages from the renderer
Check if WebSocket is currently connected
PrivatescheduleSchedule reconnection with exponential backoff
Send a message to the WebSocket server
PrivatesendSend a message to the renderer
WebSocket adapter that runs in Main Process (Node.js context). Manages WebSocket connection to Loro collaboration server. Proxies binary Loro update messages between renderer and server.