Following API's are used in the project
/publish
: http POST endpoint: sending messages to this endpoint will broadcast to all websocket clients
curl --location --request POST 'http://localhost:8080/publish' \
--header 'Content-Type: application/json' \
--data-raw '{
"message": "Hey there"
}'
/subscribe
: websocket endpoint: Messages incoming from abovepublish
api will be broadcasted to every websocket client.