Notification API - Best Practice Web Socket Handling

I am using Notification Handler to receive call events real-time. I understand that the handler creates web socket connection and each socket connection can subscribe to a definite number of topics . I am wondering what happens to web socket connection and what is the best practice to be followed around closing the socket connection as developer ? Currently I am not sure about handling the web socket connection closure . I am refreshing channel subscription after 23 hours and calling webSocket.recreate(); during the channel refresh ? Am i missing anything ?

Hi,

Channels remain active for 24 hours. To maintain a channel for longer than 24 hours, resubscribe to topics. Also, how you go about closing the websocket connection will depend on which websocket client you are using, but it should follow The WebSocket Protocol for closing connections.

Thanks

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.