ocpp-rpc
    Preparing search index...

    Interface Handshake

    interface Handshake {
        endpoint: string;
        headers: IncomingHttpHeaders;
        identity: string;
        password: Buffer<ArrayBufferLike> | undefined;
        protocols: Set<string>;
        query: URLSearchParams;
        remoteAddress: string;
        request: IncomingMessage;
    }
    Index
    endpoint: string

    The endpoint path portion of the connection URL. This is the part of the path before the identity.

    headers: IncomingHttpHeaders

    The HTTP headers sent in the upgrade request.

    identity: string

    The identity portion of the connection URL, decoded.

    password: Buffer<ArrayBufferLike> | undefined

    If HTTP Basic auth was used in the connection, and the username correctly matches the identity, this field will contain the password (otherwise undefined). Typically this password would be a string, but the OCPP specs allow for this to be binary, so it is provided as a Buffer for you to interpret as you wish.

    protocols: Set<string>

    A set of subprotocols purportedly supported by the client.

    query: URLSearchParams

    The query string parsed as URLSearchParams.

    remoteAddress: string

    The remote IP address of the socket.

    request: IncomingMessage

    The full HTTP request received by the underlying webserver.