Leaving channel causes timeout
Maradox opened this issue · 5 comments
When leaving a channel I receive immediately the events:
Receive: {"event":"phx_reply","payload":{"response":{},"status":"ok"},"ref":"10","topic":"my_topic"}
Receive: {"event":"phx_close","payload":{},"ref":"7","topic":"my_topic"}
However, channel.onClose() is triggered 10 seconds later due to timeout. This happens everytime.
are you removing the channel from the socket as well?
channel.leave()
socket.remove(channel)
Yes, I also remove the channel.
@dsrees Is there an update on this Since we are also facing this issue??
There is not. If you have time and want to investigate and submit a PR, I will gladly review it
@dsrees If there is no activity on the fragment/activity , channels gets close(not sure why) which in turn closes the socket, then socket gets open again by the phoenix client, but why does it gets close every time after some n secs, also is there a way to increase this time limit. Thanks a lot.