JavaPhoenixClient icon indicating copy to clipboard operation
JavaPhoenixClient copied to clipboard

`unmatched topic` after reconnect

Open Fabi755 opened this issue 3 years ago • 1 comments

At first thank you for your work and this nice library! :-)

I have some trouble with reconnections. While my research I found the following issue on phoenix's JS client.

I get the same behavior on this client.

If I call disconnect and connect again to simulate a connection drop, I can not push messages anymore. I still get error with unmatched topic.

Message(joinRef=null, ref=16, topic=room:lobby, event=chan_reply_16, rawPayload={response={reason=unmatched topic}, status=error})

Debugging the client show all things are connected

canPush = true
isJoined = true
socket.isConnected = true

I have looked at the linked issue and the merge requests. But I don't understand the cause or the solution to fix this by myself.

In case this is really a bug and someone can help me to understand the cause and have some ideas how to fix this, I want to create a PR for this.

Fabi755 avatar Oct 11 '22 09:10 Fabi755

Thanks for the great issue and linking to a related issue in the JS client. I'll work on getting this fixed up

dsrees avatar Oct 11 '22 12:10 dsrees