- Preparing search index...
- The search index is not available
biorate
Methods
addListener
- addListener(event, listener): WebSocket
-
Parameters
-
event: "close"
-
listener: ((webSocket) => any)
-
- (webSocket): any
-
Returns any
- addListener(event, listener): WebSocket
-
Parameters
-
event: "framereceived"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- addListener(event, listener): WebSocket
-
Parameters
-
event: "framesent"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- addListener(event, listener): WebSocket
-
Parameters
-
event: "socketerror"
-
listener: ((string) => any)
-
- (string): any
-
Returns any
isClosed
- isClosed(): boolean
-
Returns boolean
off
- off(event, listener): WebSocket
-
Parameters
-
event: "close"
-
listener: ((webSocket) => any)
-
- (webSocket): any
-
Returns any
- off(event, listener): WebSocket
-
Parameters
-
event: "framereceived"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- off(event, listener): WebSocket
-
Parameters
-
event: "framesent"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- off(event, listener): WebSocket
-
Parameters
-
event: "socketerror"
-
listener: ((string) => any)
-
- (string): any
-
Returns any
on
- on(event, listener): WebSocket
-
Parameters
-
event: "close"
-
listener: ((webSocket) => any)
-
- (webSocket): any
-
Returns any
- on(event, listener): WebSocket
-
Parameters
-
event: "framereceived"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- on(event, listener): WebSocket
-
Parameters
-
event: "framesent"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- on(event, listener): WebSocket
-
Parameters
-
event: "socketerror"
-
listener: ((string) => any)
-
- (string): any
-
Returns any
once
- once(event, listener): WebSocket
-
Parameters
-
event: "close"
-
listener: ((webSocket) => any)
-
- (webSocket): any
-
Returns any
- once(event, listener): WebSocket
-
Parameters
-
event: "framereceived"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- once(event, listener): WebSocket
-
Parameters
-
event: "framesent"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- once(event, listener): WebSocket
-
Parameters
-
event: "socketerror"
-
listener: ((string) => any)
-
- (string): any
-
Returns any
prependListener
- prependListener(event, listener): WebSocket
-
Parameters
-
event: "close"
-
listener: ((webSocket) => any)
-
- (webSocket): any
-
Returns any
- prependListener(event, listener): WebSocket
-
Parameters
-
event: "framereceived"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- prependListener(event, listener): WebSocket
-
Parameters
-
event: "framesent"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- prependListener(event, listener): WebSocket
-
Parameters
-
event: "socketerror"
-
listener: ((string) => any)
-
- (string): any
-
Returns any
removeListener
- removeListener(event, listener): WebSocket
-
Parameters
-
event: "close"
-
listener: ((webSocket) => any)
-
- (webSocket): any
-
Returns any
- removeListener(event, listener): WebSocket
-
Parameters
-
event: "framereceived"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- removeListener(event, listener): WebSocket
-
Parameters
-
event: "framesent"
-
listener: ((data) => any)
-
- (data): any
-
Parameters
-
data: {
payload: string | Buffer;
}
Returns any
- removeListener(event, listener): WebSocket
-
Parameters
-
event: "socketerror"
-
listener: ((string) => any)
-
- (string): any
-
Returns any
url
- url(): string
-
Returns string
waitForEvent
- waitForEvent(event, optionsOrPredicate?): Promise<WebSocket>
-
Parameters
-
event: "close"
-
Optional
optionsOrPredicate: {
predicate?: ((webSocket) => boolean | Promise<boolean>);
timeout?: number;
} | ((webSocket) => boolean | Promise<boolean>)
Optional
- waitForEvent(event, optionsOrPredicate?): Promise<{
payload: string | Buffer;
}>
-
Parameters
-
event: "framereceived"
-
Optional
optionsOrPredicate: {
predicate?: ((data) => boolean | Promise<boolean>);
timeout?: number;
} | ((data) => boolean | Promise<boolean>)
Optional
Returns Promise<{
payload: string | Buffer;
}>
- waitForEvent(event, optionsOrPredicate?): Promise<{
payload: string | Buffer;
}>
-
Parameters
-
event: "framesent"
-
Optional
optionsOrPredicate: {
predicate?: ((data) => boolean | Promise<boolean>);
timeout?: number;
} | ((data) => boolean | Promise<boolean>)
Optional
Returns Promise<{
payload: string | Buffer;
}>
- waitForEvent(event, optionsOrPredicate?): Promise<string>
-
Parameters
-
event: "socketerror"
-
Optional
optionsOrPredicate: {
predicate?: ((string) => boolean | Promise<boolean>);
timeout?: number;
} | ((string) => boolean | Promise<boolean>)
Optional
Returns Promise<string>
The WebSocket class represents websocket connections in the page.