null pointer dereference on connect to a non-working server
wrong subscribe error type checking - without this fix the error was SubscribeErrorEvent{message: Error{code: 103, message: permission denied}, code: -1}, now it's SubscribeErrorEvent{message: permission denied, code: 103}
better console example - fixes lack of SubscribeSuccessEvent
Fixes:
SubscribeErrorEvent{message: Error{code: 103, message: permission denied}, code: -1}
, now it'sSubscribeErrorEvent{message: permission denied, code: 103}
SubscribeSuccessEvent