node-websocket-chat
This project was to create a simple Web socket based chat application to learn more about web sockets.
This application requires running a server and clients that connect to the server to broadcast messages to everyone connected.
Usage
-
Run the server (run on port 5005 by default)
<PORT=xxxx> node dist/server.js
-
Run any number of clients
WS_ADDR=host:port node dist/client.js
Development
-
Install dependencies
npm install
-
Make any changes in src/
-
Build the TS into JS
npm run tsc