Skip to content

Documents for @litert/websocket / Errors / E_INVALID_PROTOCOL

Class: E_INVALID_PROTOCOL ​

Defined in: src/lib/Errors.ts:108

The error class for websocket.

Extends ​

Constructors ​

Constructor ​

new E_INVALID_PROTOCOL(message, context, origin): E_INVALID_PROTOCOL

Defined in: src/lib/Errors.ts:110

Parameters ​

message ​

string

context ​

IErrorContext = {}

origin ​

unknown = null

Returns ​

E_INVALID_PROTOCOL

Overrides ​

WsError.constructor

Properties ​

context ​

readonly context: IErrorContext

Defined in: src/lib/Errors.ts:31

The context information for the error.

Inherited from ​

WsError.context


origin ​

readonly origin: unknown

Defined in: src/lib/Errors.ts:36

The origin object for the error.

Inherited from ​

WsError.origin