We need a simple websocket server to broadcast messages to all connected clients.
The following design rules are needed:
1) Any client can connect (IOS, Android, Web) as listener
2) Only backend can post and broadcast through authenticated https request
3) Channels will be created dynamically either for specific users or multiple subscribers
==> examples: /target/$userid or /channel/$groupName
4) Message will be a simple JSON payload
5) the http endpoint should return information on connected users/recipients
6) We need a web client console to monitor the messages that are being broadcasted per channel
7) extramile: we need functions to query information about channels/users/messages
That is it... pretty simple?
The intention is to replace a socketIO implementation on our webserver that is not scaling properly.
It is not for chat (not bilateral), it is to simply broadcast messages from server to connected clients.
and server can only send messages if an authenticated backend transaction calls it.