Event-driven programming
-
Updated
Sep 18, 2023 - HTML
WebSocket is a computer communications protocol, providing full-duplex communication channels for interaction between a web browser (or other client application) and a web server over a single TCP connection. The WebSocket protocol allows for sending messages to a server and receiving event-driven responses without having to poll the server for a reply, facilitating real-time data transfer from and to the server. This is made possible by providing a standardized way for the server to send content to the client without being first requested by the client, and allowing messages to be passed back and forth while keeping the connection open. In this way, a two-way ongoing conversation can take place between the client and the server.
Event-driven programming
Multiuser spreadsheet example
Easy polls is the ultimate Q&A and polling platform for live and virtual meetings and events and it is a clone of slido.
This application connects to binance futures using WS, it allows you to receive data on price growth/volume increase/increase in the number of transactions on the market - in real time on the futures market. You can set custom alerts or monitor price changes in real time and respond to them.
A multiplayer version of the rock paper scissors game made with Javascript and webksocket
WebSocket Test Rig is a simple project that demonstrates real-time client–server communication using WebSockets. It includes a browser-based interface and a Node.js backend that can send and receive live messages, highlighting practical experience with real-time systems and event-driven programming.
NodeJS WebSocket example that works on Heroku
A lightweight chat app around 200 lines of code and 16KB in size, built on core libraries/ APIs WebSocket(browser) & WS(backend).
Created by Michael Carter, Ian Hickson