... where CentrifugeDelegate has the onConnect and onDisconnect methods.
What happens is that the code gets executed, it's not connected to the server (log_level=debug doesn't show anything), and neither of the two methods are called. Basically, nothing happens.
I think it is useful both for debugging and for notifying the users that there's some delegate method, error or something else that gets triggered when the initial connection fails.
I am debugging a connection issue and I noticed that there's no event whatsoever when the connection is not succeeding.
My code is almost the same as in README:
... where
CentrifugeDelegate
has theonConnect
andonDisconnect
methods.What happens is that the code gets executed, it's not connected to the server (log_level=debug doesn't show anything), and neither of the two methods are called. Basically, nothing happens.
I think it is useful both for debugging and for notifying the users that there's some delegate method, error or something else that gets triggered when the initial connection fails.