Can a native(c++) client and a web(JavaScript) client enter one room?
Options
Two native clients can enter the room "test_room". Two web clients also see each other in this room.
But the native client and the web can not see each other's friends. Why is that?
But the native client and the web can not see each other's friends. Why is that?
0
Comments
-
Hi @Zaur.
Please check our matchmaking checklist at https://doc.photonengine.com/en-us/realtime/current/reference/matchmaking-and-lobby.0 -
Thanks for the answer.
I set the region in the application settings: http://take.ms/GgAa6
But all the same I continue to receive an error: http://take.ms/4Ho7a.
0 -
I solved this problem. In the code it is necessary to expose region "ru"!
Thanks.0 -
Hi @JohnTube,
1. I write region "ru;ru" in application settings page: http://take.ms/GgAa6
2. In JS connecting to photon with method:client.connectToRegionMaster('ru');
3. In C++:client.selectRegion("ru");
before callingclient.connect(...)
0 -
@Zaur:
before calling client.connect(...)
What you do is not howselectRegion()
is supposed to be used and produces undefined behavior.
Please see the API-reference ofClient::selectRegion()
at http://doc-api.photonengine.com/en/cpp/current/html/.
demo_loadBalancing inside the C++ client SDKs contains example code for this feature.0