How to reconnectAndRejoin in Realtime iOS client
in Native
Hello,
This is for the Realtime IOS client.
For Photon-iOS-Sdk_v4-1-16-0 in the demo_loadBalancing_swift demo how would I create a swift method in NetworkLogic.swift to reconnectAndRejoin ?
Thanks,
This is for the Realtime IOS client.
For Photon-iOS-Sdk_v4-1-16-0 in the demo_loadBalancing_swift demo how would I create a swift method in NetworkLogic.swift to reconnectAndRejoin ?
Thanks,
0
Best Answer
-
Hi @GreenRollingHills.
The reconnectAndRejoin feature is currently not available in the objective C API and hence Swift apps can't use this feature.
However you can simply connect normally and then manually rejoin the room that you have been in.
Callconnect()
and once connected callopJoinRoom()
and pass the id of the previously joined room and the playerNr that your client had inside that room. That will result in a rejoin as the previously joined player.5
Answers
-
Hi @GreenRollingHills.
The reconnectAndRejoin feature is currently not available in the objective C API and hence Swift apps can't use this feature.
However you can simply connect normally and then manually rejoin the room that you have been in.
Callconnect()
and once connected callopJoinRoom()
and pass the id of the previously joined room and the playerNr that your client had inside that room. That will result in a rejoin as the previously joined player.5 -
Hi,
We're using LoadBalancing-cpp (C++), can we expect reconnectAndRejoin() to work in this case? We're using older SDK though.
Best regards,
Yogi0 -
0