SocketClientEventMap
Event map forclient.socket.on() listeners.
SocketState
Possible connection states.SocketClientOptions
Options for the low-level socket client.SocketMessageResponseMap
Maps each client requestMessageType to the data shape of its corresponding server response. Used by sendMessagePromise to infer the response type from the request type at compile time.
InferResponseData
Helper type that infers the responsedata type for a given client message. Falls back to Record<string, any> for unrecognised message types.
sendMessagePromise without manual casts: