ocpp-rpc
    Preparing search index...

    Type Alias ConnectionState

    ConnectionState:
        | RPCClient.CONNECTING
        | RPCClient.OPEN
        | RPCClient.CLOSING
        | RPCClient.CLOSED

    Represents the current state of a WebSocket connection. The four possible values correspond to the WebSocket ready state constants:

    • RPCClient.CONNECTING - The connection is being established.
    • RPCClient.OPEN - The connection is open and ready to communicate.
    • RPCClient.CLOSING - The connection is in the process of closing.
    • RPCClient.CLOSED - The connection is closed or could not be opened.