Properties
Static
Private
detectEnvironment
detectEnvironment: any
Methods
Static
createWebSocket
- createWebSocket(url: string | URL, protocols?: string | string[]): WebSocketLike
-
Parameters
-
url: string | URL
-
Optional
protocols: string | string[]
Static
getWebSocketConstructor
- getWebSocketConstructor(): {
CLOSED: number;
CLOSING: number;
CONNECTING: number;
OPEN: number;
prototype: WebSocket;
new (url: string | URL, protocols?: string | string[]): WebSocket;
}
-
Returns {
CLOSED: number;
CLOSING: number;
CONNECTING: number;
OPEN: number;
prototype: WebSocket;
new (url: string | URL, protocols?: string | string[]): WebSocket;
}
-
- new (url: string | URL, protocols?: string | string[]): WebSocket
-
Parameters
-
url: string | URL
-
Optional
protocols: string | string[]
Returns WebSocket
-
Readonly
CLOSED: number
-
Readonly
CLOSING: number
-
Readonly
CONNECTING: number
-
Readonly
OPEN: number
-
prototype: WebSocket
Static
isWebSocketSupported
- isWebSocketSupported(): boolean
-
Returns boolean