Detecting disconnections\server down.

41 views
Skip to first unread message

Oren Shvalb

unread,
Jan 7, 2016, 2:25:21 PM1/7/16
to sockjs
Hello,

I'm using vertxbus that internally built upon sockjs and I have a basic question.

When I call 'onopen' for the first time in order to establish a connection, How can I know that server is down?

At this point when I call 'onopen' and pass a callback function - if server is down the method is stuck and doesn't return at all.

in addition, how do I detect disconnections?

Thanks!
Reply all
Reply to author
Forward
0 new messages