You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know where to place the addHandler statements. Anywhere I try, problems errupt. deleteHandler doesn't seem to be doing anything. And I'll file a bug about this soon. So I have this question for the developers (the answer is not in the documentation, so please answer):
If I execute Connection.connect(...) 10 times while disconnected, and then the connection happens, how many times will the function(status) callback be executed every time the status changes from then on?
The text was updated successfully, but these errors were encountered:
The Connection only has one callback that gets overwritten every time you call connect.
If you are using WebSockets the callback should be called once, specifically the callback from the last connect, as connect will kill current WebSocket connections and overwrite callbacks. After the last connect() finished, those callbacks should be gone too though, because their socket does not exist any more.
For BOSH I'm not sure, I guess the previous connections will also be terminated.
I don't know where to place the addHandler statements. Anywhere I try, problems errupt. deleteHandler doesn't seem to be doing anything. And I'll file a bug about this soon. So I have this question for the developers (the answer is not in the documentation, so please answer):
If I execute Connection.connect(...) 10 times while disconnected, and then the connection happens, how many times will the function(status) callback be executed every time the status changes from then on?
The text was updated successfully, but these errors were encountered: