GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

5 results across 6 corpora for WebSocketStream: opened property.

Developer library 5

Using WebSocketStream to write a client

WebSockets API The WebSocketStream API is a Promise-based alternative to WebSocket for creating and using client-side WebSocket connections. `WebSocketStream` uses the [Streams API](/docs/Web/API/Streams_API) to handle receiving and sending messages, meaning that socket connections can take advantage of stream [backpressure](/docs/Web/API/Streams_API/Concepts#backpressure) automatically (no additional action require

WebSocketStream

WebSockets API The **`WebSocketStream`** interface of the WebSockets API is a promise-based API for connecting to a WebSocket server. It uses [streams](/docs/Web/API/Streams_API) to send and receive data on the connection, and can therefore take advantage of stream [backpressure](/docs/Web/API/Streams_API/Concepts#backpressure) automatically, regulating the speed of reading or writing to avoid bottlenecks in the app

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/WebSocketStream

WebSocketStream: WebSocketStream() constructor

WebSockets API The **`WebSocketStream()`** constructor creates a new WebSocketStream object instance. ## Syntax ```js-nolint new WebSocketStream(url) new WebSocketStream(url, options) ``` ### Parameters - `url` - : A string representing the URL of the WebSocket server you want to connect to with this `WebSocketStream` instance. Allowed URL schemes are `"ws"`, `"wss"`, `"http"`, and `"https"`. - `options` -

WebSocketStream: opened property

WebSockets API The **`opened`** read-only property of the WebSocketStream interface returns a Promise that fulfills with an object once the socket connection is successfully opened. Among other features, this object contains a ReadableStream and a WritableStream instance for receiving and sending data on the connection. ## Value A promise, which fulfills with an object containing the following properties: - `exte

WebSocket

vice's memory by buffering those messages, become unresponsive due to 100% CPU usage, or both. For an alternative that provides backpressure automatically, see WebSocketStream. ## Constructor - WebSocket() - : Returns a newly created `WebSocket` object. ## Instance properties - WebSocket.binaryType - : The binary data type used by the connection. - WebSocket.bufferedAmount - : The number of bytes of queu

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/WebSocket

JSON results · Services directory