Unity version: 6000.3.8f1
PhoenixSharp version: any version from January 2026 (tried 1.0.1, 1.2.1, 1.3.1 installed using NuGet)
.net version: 2.1
Platforms: Android/iOS with IL2CPP enabled
I planned to use async methods but after updating of this plugin from version released in 2023, I got the problem with websocket behavior on Android/iOS devices while in Editor all works as intended.
In total I have 2 different channels, but both of them act similar: phx_join, phx_reply, phx_close with smaller Ref value. Then channel is reconnecting infinitely with the same problem.
Logs for 1 of channels:
Pushing Message { Topic = room:1, Event = phx_join, Ref = 8, Payload = Phoenix.JsonBox, JoinRef = 8 }
Received Message { Topic = room:1, Event = phx_reply, Ref = 8, Payload = Phoenix.JsonBox, JoinRef = 8 }
Received Message { Topic = room:1, Event = phx_close, Ref = 6, Payload = Phoenix.JsonBox, JoinRef = 6 }
dropping outdated message for topic 'room:1' (joinRef 6 does not match joinRef 8)
Pushing Message { Topic = room:1, Event = phx_join, Ref = 12, Payload = Phoenix.JsonBox, JoinRef = 12 }
Received Message { Topic = room:1, Event = phx_reply, Ref = 12, Payload = Phoenix.JsonBox, JoinRef = 12 }
Received Message { Topic = room:1, Event = phx_close, Ref = 10, Payload = Phoenix.JsonBox, JoinRef = 10 }
dropping outdated message for topic 'room:1' (joinRef 10 does not match joinRef 12)
and so on
Unity version: 6000.3.8f1
PhoenixSharp version: any version from January 2026 (tried 1.0.1, 1.2.1, 1.3.1 installed using NuGet)
.net version: 2.1
Platforms: Android/iOS with IL2CPP enabled
I planned to use async methods but after updating of this plugin from version released in 2023, I got the problem with websocket behavior on Android/iOS devices while in Editor all works as intended.
In total I have 2 different channels, but both of them act similar: phx_join, phx_reply, phx_close with smaller
Refvalue. Then channel is reconnecting infinitely with the same problem.Logs for 1 of channels: