UNPKG

@tldraw/sync-core

Version:

tldraw infinite canvas SDK (multiplayer sync).

19 lines (18 loc) 627 B
const RoomSessionState = { /** Session is waiting for the initial connect message from the client */ AwaitingConnectMessage: "awaiting-connect-message", /** Session is disconnected but waiting for final cleanup before removal */ AwaitingRemoval: "awaiting-removal", /** Session is fully connected and actively synchronizing */ Connected: "connected" }; const SESSION_START_WAIT_TIME = 1e4; const SESSION_REMOVAL_WAIT_TIME = 5e3; const SESSION_IDLE_TIMEOUT = 2e4; export { RoomSessionState, SESSION_IDLE_TIMEOUT, SESSION_REMOVAL_WAIT_TIME, SESSION_START_WAIT_TIME }; //# sourceMappingURL=RoomSession.mjs.map