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
and I am also then listening to the socket in the subscription with
subscriptions : Model -> Sub Msg
subscriptions model =
Phoenix.Socket.listen model.phxSocket PhoenixMsg
Looking through the documentation and the example code I cant see the best way to handle when the socket cannot successfully init (when the server is down etc.)
Looking through the source, it looks like there are a few functions that might help:
onError and onJoinError with the channel but I cant see anything on the initial socket. It looks like the websocket library exposes an error but I cant see a place to hook into it.
The text was updated successfully, but these errors were encountered:
I have the following function to connect to a socket
and I am also then listening to the socket in the subscription with
Looking through the documentation and the example code I cant see the best way to handle when the socket cannot successfully init (when the server is down etc.)
Looking through the source, it looks like there are a few functions that might help:
onError
andonJoinError
with the channel but I cant see anything on the initial socket. It looks like thewebsocket
library exposes an error but I cant see a place to hook into it.The text was updated successfully, but these errors were encountered: