handle Throw error in Pub/Sub Pattern in Javascript

Hi, The session/connection status are made available via callbacks on the session and that is the only way it works. If you could give sample snippet as to how you want this to be, maybe we can suggest/explore more.