This project provides the basic scaffolding for a Node.js-based application that will:
- Serve static web resources from the
webdirectory using Express - Listen for Web Socket connections on port 8081
- Relay incoming messages from a Web Socket client to all other connected clients
- Fork and clone this repository
- Place all your web resources (i.e. scripts, HTML pages, style sheets, etc.) in the
webdirectory - Install all dependencies by running
npm install - Start the relay server by running
node . - Access your HTML pages from a web browser at
http://localhost:8081 - Write your own custom code to connect to the relay server using a Web Socket connection at
ws://localhost:8081 - Send messages messages to the server using your Web Socket; they'll be relayed to all other connected clients