An angular based client application to communicate with a websocket server.
The server should support 2 messaging endpoints
- /chat.sendMessage - Public messaging
- /chat.addUser - When adding a new user
Connection to the server gets established once users enter the details. With right listeners in place, we can capture the user joining and leaving events.
To run this
- clone the repo
- Goto the repo path
- Dev
- Make sure the
api_urlis configured in theenvironment.tsfile. - run
ng serve. OR
- Make sure the
- To run from a node/express server
- Make sure the
api_urlis configured in theenvironment.tsfile. - run
ng build --aot --prod. - This will generate distributable directory (
dist). Copy thedist&server.jsin the same directory - run
node server.jsif you want to deploy it on a server
- Make sure the
Screens