-
Is there a way to "pause" a connection, i.e. close the connection temporarily to recover it later? Calling |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Currently it's not possible to do that, and I don't think the reference implementation from the core Phoenix team supports that either. A solution would be to close and dispose of the socket when you go in the background, and re-instantiate a new The |
Beta Was this translation helpful? Give feedback.
Currently it's not possible to do that, and I don't think the reference implementation from the core Phoenix team supports that either. A solution would be to close and dispose of the socket when you go in the background, and re-instantiate a new
PhoenixSocket
when your app resumes.The
reconnect
flag is used internally following a connection close, due to protocol error or transient network failure, for cases where you can get a new connection by re-connecting.