Région de recherche :

Date :

https://fr.javascript.info › websocket

WebSocket - JavaScript

La méthode WebSocket .send() peut envoyer du texte ou des données binaires. Un appel socket.send(body) autorise body dans une chaîne de caractères ou un format binaire, y compris Blob , ArrayBuffer , etc. Aucun paramètre requis : il suffit de l’envoyer dans n’importe quel format.

https://developer.mozilla.org › fr › docs › Web › API › WebSocket

WebSocket - Les API Web | MDN - MDN Web Docs

L'objet WebSocket fournit l'API qui permet de créer et de gérer une connexion WebSocket à un serveur ainsi que d'envoyer et de recevoir des données sur cette connexion. Pour construire un objet WebSocket, on utilisera le constructeur WebSocket().

https://developer.mozilla.org › fr › docs › Web › API › WebSockets_API › Writing_WebSocket_client...

Ecrire des applications client WebSocket - Les API Web | MDN - MDN Web Docs

Les WebSockets représentent une technologie, basée sur le protocole web socket, qui permet d'établir une session de communication bilatérale entre un navigateur web et un serveur. Un navigateur web est un exemple typique de client websocket typique mais le protocole n'est dépendant d'aucune plateforme.

https://developer.mozilla.org › en-US › docs › Web › API › WebSockets_API › Writing_WebSocket...

Writing WebSocket client applications - Web APIs | MDN - MDN Web Docs

WebSocket client applications use the WebSocket API to communicate with WebSocket servers using the WebSocket protocol. Note: The example snippets in this article are taken from our WebSocket chat client/server sample.

https://javascript.info › websocket

WebSocket - The Modern JavaScript Tutorial

The WebSocket protocol, described in the specification RFC 6455, provides a way to exchange data between browser and server via a persistent connection. The data can be passed in both directions as “packets”, without breaking the connection and the need of additional HTTP-requests.

https://stackoverflow.com › questions › 8125507

How can I send and receive WebSocket messages on the server side?

Sending messages. (In other words, server → browser) The frames you're sending need to be formatted according to the WebSocket framing format. For sending messages, this format is as follows: one byte which contains the type of data (and some additional info which is out of scope for a trivial server) one byte which contains the length.

https://www.xul.fr › html5 › websocket.php

Tutoriel WebSocket - Xul.fr

Tutoriel WebSocket. Basé sur la spécification W3C, comment échanger des données avec un serveur à l'initiative du client ou du serveur. WebSocket est une alternative à Ajax plus simple à mettre en oeuvre coté client, mais avec une compatibilité limitée aux navigateurs récents. Le protocole complet est supporté par Internet Explorer ...

https://websockets.readthedocs.io › en › 9.1 › intro.html

Getting started — websockets 9.1 documentation

A WebSocket server can receive events from clients, process them to update the application state, and synchronize the resulting state across clients. Here’s an example where any client can increment or decrement a counter.

https://rxjs.dev › api › webSocket › webSocket

RxJS - webSocket

webSocket is a factory function that produces a WebSocketSubject, which can be used to make WebSocket connection with an arbitrary endpoint. webSocket accepts as an argument either a string with url of WebSocket endpoint, or an WebSocketSubjectConfig object for providing additional configuration, as well as Observers for tracking lifecycle of We...

https://websockets.readthedocs.io › en › stable › intro › tutorial1.html

Part 1 - Send & receive - websockets 13.1 documentation

build and run a WebSocket server in Python with serve(); receive a message in a connection handler with recv(); send a message in a connection handler with send(); iterate over incoming messages with async for message in websocket:...; open a WebSocket connection in JavaScript with the WebSocket API; send messages in a browser with WebSocket ...