basalt / realtime/src / Connection
Interface: Connection
Defined in: realtime/src/hub.ts:18
A live client. Transports (WebSocket, SSE) build one of these from their native socket/response — the hub only ever calls send/close, so the core stays framework-neutral and unit-testable with fakes.
Properties
id
> readonly id: string
Defined in: realtime/src/hub.ts:19
tenantId
> readonly tenantId: string
Defined in: realtime/src/hub.ts:20
userId?
> readonly optional userId?: string
Defined in: realtime/src/hub.ts:21
Methods
close()
> close(): void
Defined in: realtime/src/hub.ts:23
Returns
void
send()
> send(message): void
Defined in: realtime/src/hub.ts:22
Parameters
message
Returns
void