This repository contains the implementation of the web socket connection and basic front-end code to run and try it.
-----------------------------------------------------------------------------------------------------------------------
To run it, Follow the below steps:
- Go into the Web-Socket-Implementation folder.
- Run : npm -i
- A Node module folder will be created in the same folder
- Then, Run: node injex.js to start the backend server
- After that, Open the index.html file in the browser.
-----------------------------------------------------------------------------------------------------------------------
After these steps, you can see a screen to send a message to the server. There you can send:
- HELLO
- GET_TIME
- GET_DATE
- GOODBYE
When you send it, you will receive a message via web socket.