API reference › @evolu/common › WebSocket › WebSocketCreateError

Defined in: packages/common/src/WebSocket.ts:305

An error that occurs when the platform's WebSocket constructor throws, for example for a URL it rejects, which a WebSocketUrl prevents, or, in some browsers, for a ws: URL on an https: page or a Content Security Policy that blocks the URL. These fail the same way on every attempt, so the WebSocket stops connecting. The thrown value is not always an Error.

Extends

  • Typed<"WebSocketCreateError">

Properties

error

readonly error: unknown;

Defined in: packages/common/src/WebSocket.ts:306


type

readonly type: "WebSocketCreateError";

Defined in: packages/common/src/Type.ts:19326

Inherited from

Typed.type