API reference › @evolu/common › WebSocket › WebSocketCreateError

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

An error that occurs when the platform's WebSocket constructor throws, for example for a URL it rejects, 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:284


type

readonly type: "WebSocketCreateError";

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

Inherited from

Typed.type