WebSocket Chat
ws is a simple to use, blazing fast, and thoroughly tested WebSocket client and server implementation.
Passes the quite extensive Autobahn test suite: server, client.
Note: This module does not work in the browser. The client in the docs is a reference to a back end with the role of a client in the WebSocket communication. Browser clients must use the native WebSocket object. To make the same code work seamlessly on Node.js and the browser, you can use one of the many wrappers available on npm, like isomorphic-ws. Docs: https://www.npmjs.com/package/ws
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install
npm run start
Open the directory where the repository is stored locally, open the /public directory. Run index.html. The number of times index.html is run, the number of clients you will create.