-Run following commands
-1. open terminal
-2. cd your_own_directory
-3. RUN - 'git clone git@github.com:parmeet10/devxSchool-api.git'
-4. cd devxSchool-api
-5. npm install
-6. npm start
http://localhost:3000/pong
The reachability of the host can be checked through the Ping API. The API responds with a pong to communicate availability to the requesting client.
GET
/ping
None
None
None
String
pong
ws://localhost:3000?userId=1
EndPoint to connect to web-socket conenction through PostMan
RAW
ws://localhost:3000
None
userId=1
`{
"message": "Hello welcome to my new WebSocket Connection"
}`
String
{ "message": "Hello welcome to my new WebSocket Connection" }
Send some sample messages and detach from the socket connection to further test the API. Connect again with the same userId parameters and you will be broadcasted with the prior progress on the postman response Section. You can create as many distinct users as you like by supplying user ids in the parameters, and all progress will be received by the server efficiently.