Optional
protocols: string | string[]Optional
headers: Record<string, string>Optional
runtimeId: stringPrivate
_Private
_Private
_Private
_Private
_Private
_Private
_Readonly
CLOSEDReadonly
CLOSINGReadonly
CONNECTINGReadonly
OPENStatic
Readonly
CLOSEDStatic
Readonly
CLOSINGStatic
Readonly
CONNECTINGStatic
Readonly
OPEN
Custom WebSocket class that proxies through IPC. Implements the standard WebSocket API while routing traffic through Electron's main process for secure communication.