zibri
    Preparing search index...

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

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

    Implemented by

    Index

    Properties

    Properties

    id: 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.

    userId: string | undefined

    The id of the user that this connection belongs to.