BaseWebsocketConnection: {
    id: string;
    offset: number;
    userId: string | undefined;
}

Basic definition of a websocket connection. Your implementation probably needs to extend this.

Type declaration

  • Readonlyid: string

    The id of the connection.

  • offset: number

    The current offset of the connection. Is used to sync the state of the server with the client after a reconnect.

  • ReadonlyuserId: string | undefined

    The id of the user that this connection belongs to.