janelznic / websocket-demo

WebSockets demo for interchange data between server and two client endpoints - broadcaster and receiver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Screenshot 2019-09-06 09 37 44

Requirements

Installation

npm install
npm start
open http://localhost:8080/

Environment

  • Client address http://localhost:8080/ (HTTP)
  • Server ws://localhost:8081/ (WebSockets)

License

MIT © Jan Elznic – HomepageGithubGitLabLinkedIn

About

WebSockets demo for interchange data between server and two client endpoints - broadcaster and receiver

License:MIT License


Languages

Language:JavaScript 64.5%Language:HTML 32.6%Language:CSS 2.9%