GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

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

6 results across 6 corpora for WebSocketStream.

Developer library 6

WebSocket API (WebSockets)

nd many other features not supported by `WebSocket`, such as unidirectional streams, out-of-order delivery, and unreliable data transmission via datagrams. The WebSocketStream interface is an earlier attempt to solve the backpressure issue, but it is non-standard and less well-supported than the Web Transport API. > [!NOTE] > If a page has an open WebSocket connection, the browser may not add it to the bfcache. It's

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

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: closed property

WebSockets API The **`closed`** read-only property of the WebSocketStream interface returns a Promise that fulfills with an object once the socket connection is closed. The object contains the closing code and reason. ## Value A promise, which fulfills with an object containing the following properties: - `closeCode` - : A number representing the closing code (see the full list of [`CloseEvent` status codes](/d

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

JSON results · Services directory