WebSocketStream

UNSTABLE: New API, yet to be vetted.

class WebSocketStream {
constructor(url: string, options?: WebSocketStreamOptions);
closed: Promise<WebSocketCloseInfo>;
connection: Promise<WebSocketConnection>;
url: string;
 
close(closeInfo?: WebSocketCloseInfo): void;
}

§Constructors

§
new WebSocketStream(url: string, options?: WebSocketStreamOptions)
[src]

§Properties

§
closed: Promise<WebSocketCloseInfo>
[src]
§
connection: Promise<WebSocketConnection>
[src]
§
url: string
[src]

§Methods

§
close(closeInfo?: WebSocketCloseInfo): void
[src]