Hi, we would like to use Lobby and Matchmaking services for a p2p Unity game. Since our target platforms are iOS and Android it seems we can't use Client SDK for real time notifications. I guess polling with REST API solution has limitations too. The only solution which is left is SignalR service.
Here is the overall flow:
- client logins
- initialize SignalR based on docs and an another question
- build hub connection
- subscribe to ReceiveMessage and ReceiveSubscriptionChangeMessage on hub
- start a session
- reach connection handle. (example value is used for traceParent. More clarification for trace parent would be nice.)
- create a mathmaking ticket
- poll ticket status until matched status
- join a arranged lobby after ticket is matched
- get lobby ID after joining it
- subscribe to LobbyResource with Type = LobbyChanged, ResourceId = [LobbyId] (failure)
Getting "PubSubConnectionNotFoundForEntity /Lobby/SubscribeToLobbyResource: Pubsub exception was thrown. NotFound: ConnectionNotFoundForEntity" API error at step 7.
Tests are done on same machine (Windows 10) with two Unity Editor 2021.3.3f1.
One more thing. We have tried the same approach for ticket status (step 4). Usually face the same error. Sometimes subscription is successful but not getting any message when ticket is matched.