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
{{ message }}
This repository has been archived by the owner on May 5, 2023. It is now read-only.
Hi,
we have got a problem. We try to connect to Laravel Echo Server, and all goes well. But the problem is, that our app not receive any Error (if access token is not valid). Laravel Echo server shows in console 401 error (like in screen below). App is still connected and does not receive any event like: "EVENT_ERROR", "EVENT_MESSAGE"..
SERVER LOGS:
ANDROID CODE:
Any idea ? Can you help to us ? :) How to catch AuthenticationException form Laravel Echo Server in Android App.
Kind Regards,
AB.
The text was updated successfully, but these errors were encountered:
Hello.
I don't know if you can catch this type of exception with the Echo client because it's an application error and not a "network error". My answer (but it may not be relevant for your app) is to not let the end user connect to a channel that you know he cannot access.
You can watch the JavaScript doc of Laravel Echo, my lib is working exactly the same way (I've just translated the JS code into Java).
I think the solution may be to add a callback here but I don't have enough time right now to investigate. Feel free to fork the repo and test it. If you find a solution, please tell me or do a pull request.
Thanks !
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
we have got a problem. We try to connect to Laravel Echo Server, and all goes well. But the problem is, that our app not receive any Error (if access token is not valid). Laravel Echo server shows in console 401 error (like in screen below). App is still connected and does not receive any event like: "EVENT_ERROR", "EVENT_MESSAGE"..
SERVER LOGS:
ANDROID CODE:
Any idea ? Can you help to us ? :) How to catch AuthenticationException form Laravel Echo Server in Android App.
Kind Regards,
AB.
The text was updated successfully, but these errors were encountered: