In this section of the site you will see simple examples of working with the Rest2WebSocket API (Rest To WebSocket) for sending notifications to users of your site or application in real time.
Notifications (messages) are sent from the web server through classic requests to the REST API, which ensure the subsequent distribution of the message to all currently connected devices receiving notifications from selected channels.
|token.info||Get information about a specific user token|
|channel.info||Get information about a specific websocket channel|
|send.to.token||Sends a web notification to websockets with the same user token.|
|send.to.channel||Sends a web notification to websockets connected to the channel.|
|list.active.tokens||Get list of active user tokens with currently connected websockets.|
|list.active.channels||Get list of active channels with currently connected websockets.|
To try this service, a simple example is prepared, which demonstrates the sending of web notifications via the websocket and their display in the browser (in the html page and as pop-up windows of the operating system). Open live example with web notifications sent through a websocket.