I am trying to implement a chat application based on Stratus, in case the person I am chatting to disconnects, due to browser refresh or browser close, I am not getting any notification about stream being disconnected. Is there any way I can detect if the stream is valid or not before sending any data.
PS: I tried waiting for a timeout event, but does not seems to work.
are you setting an event handler for NetStatusEvent.NET_STATUS on your publishing and subscribing NetStreams? you should get event codes like "NetStream.Connect.Closed" when a peer disconnects.