ocpp-rpc
    Preparing search index...

    Type Alias ClientRejectCallback

    ClientRejectCallback: (code: number, message: string) => void

    Call this function to reject the incoming client. This causes the server to emit an 'upgradeAborted' event.

    Type Declaration

      • (code: number, message: string): void
      • Parameters

        • code: number

          HTTP status code to reject the connection with. Defaults to 404.

        • message: string

          HTTP response body. Defaults to 'Not found'.

        Returns void