Région de recherche :

Date :

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://developer.mozilla.org › en-US › docs › Web › API › WebSockets_API

The WebSocket API (WebSockets) - Web APIs | MDN - MDN Web Docs

The WebSocket API makes it possible to open a two-way interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive responses without having to poll the server for a reply.

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

Ecrire des applications client WebSocket. 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://javascript.info › websocket

WebSocket - The Modern JavaScript Tutorial

A simple example. To open a websocket connection, we need to create new WebSocket using the special protocol ws in the url: let socket = new WebSocket("ws://javascript.info"); There’s also encrypted wss:// protocol. It’s like HTTPS for websockets.

https://dev.to › pubnub › websocket-programming-examples-with-and-without-nodejs-22nj

WebSocket Programming Examples with and without Node.js

The WebSocket protocol is used wherever a solution requires real-time communication and example use cases include: Chat Apps. Live Location Tracking on a Map. Live Audience Interaction. IoT Device Updates. WebSockets create a TCP socket connection between multiple devices or processes.

WebSocket Programming Examples with and without Node.js

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

Part 1 - Send & receive - websockets 13.1 documentation

Part 1 - Send & receive ¶. In this tutorial, you’re going to build a web-based Connect Four game. The web removes the constraint of being in the same room for playing a game. Two players can connect over of the Internet, regardless of where they are, and play in their browsers.

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://websockets.readthedocs.io › en › stable › howto › quickstart.html

Quick start - websockets 13.1 documentation

Here are a few examples to get you started quickly with websockets. Say “Hello world!” ¶. Here’s a WebSocket server. It receives a name from the client, sends a greeting, and closes the connection. server.py ¶.

https://blog.logrocket.com › websoc

WebSockets tutorial: How to go real-time with Node and React

The browser standard offers the built-in WebSocket API to connect with WebSocket servers, so selecting an external library is optional on the browser, but using libraries may improve your code readability on frontend frameworks and boost productivity as they come with pre-developed features.

WebSockets tutorial: How to go real-time with Node and React

https://stackoverflow.com › questions › 10200910

Creating a "Hello World" WebSocket example - Stack Overflow

WebSockets are implemented with a protocol that involves handshake between client and server. I don't imagine they work very much like normal sockets. Read up on the protocol, and get your application to talk it. Alternatively, use an existing WebSocket library, or .Net4.5beta which has a WebSocket API.

Creating a "Hello World" WebSocket example - Stack Overflow