Closed qialex closed 6 years ago
I modified the service to include a getter for the EchoService.echo instance instead of just making it public (since "setting" it will break the service). I also added a "connected" getter which should work for all connector types (based on docs), but I have not yet had time to test either, so please update to the latest published version(s) to check them and let me know
chancezeus, thank you for modification. I agree that making EchoService.echo public is not a good idea. Let's close this pr. I added new PR https://github.com/chancezeus/angular-laravel-echo/pull/7 where I suggest to add observer for connection state
EchoService.echo now becomes public, because right now there is no way to check weather if socket is connected or not"