WebSocket Demo
WebSocket API providing continuous two-way connection between client and server. Unlike HTTP, WebSocket provides full-duplex communication. Additionally, WebSocket enables streams of messages on top of TCP. Messages can be sent and received on both ends.
This demo is designed to interchange data between server and two client endpoints: broadcaster and receiver.
API: https://developer.mozilla.org/cs/docs/Web/API/WebSockets_API
Screenshot
Requirements
Installation
npm install
npm start
open http://localhost:8080/
Environment
- Client address
http://localhost:8080/
(HTTP) - Server
ws://localhost:8081/
(WebSockets)