WebSocket: { CLOSED: number; CLOSING: number; CONNECTING: number; OPEN: number; prototype: WebSocket; new (url,
protocols?): WebSocket; } Type declaration
- new (url, protocols?): WebSocket
Parameters
url: string | URL
Optional
protocols: string | string[]
Readonly
CLOSED: number
Readonly
CLOSING: number
Readonly
CONNECTING: number
Readonly
OPEN: number