-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Hi @luanhssa,
First of all, thanks for the plugin really easy to use and setup. Great work!
I'm wondering, do you think you could add something like a listener for when HTTP errors are triggered? For example, sometimes my websocket would return:
W/System.err(11581): java.net.ProtocolException: Expected HTTP 101 response but was '403 Forbidden'
W/System.err(11581): at okhttp3.internal.ws.RealWebSocket.checkUpgradeSuccess$okhttp(RealWebSocket.kt:185)
W/System.err(11581): at okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:156)
W/System.err(11581): at okhttp3.RealCall$AsyncCall.run(RealCall.kt:140)
W/System.err(11581): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err(11581): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err(11581): at java.lang.Thread.run(Thread.java:764)
But there is not any way (or I didnt find any way) of capturing that exception and for example, trying to reconnect to my websocket again.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels