gamesdk-and-dispatch icon indicating copy to clipboard operation
gamesdk-and-dispatch copied to clipboard

[Feature Request] api for check if the user is connected to a lobby or its voice

Open iTakeshi opened this issue 5 years ago • 2 comments

Currently, it seems there are no API to check if the current user is connected to a lobby (or its voice). If there exist, please tell me which API I should use.

If not, I believe it's useful if there were API like

LobbyManager.IsConnected(Int64 lobbyId);
LobbyManager.IsVoiceConnected(Int64 lobbyId);

iTakeshi avatar Mar 24 '20 16:03 iTakeshi

What do you mean no API check? https://discordapp.com/developers/docs/game-sdk/lobbies#connectvoice It has a Result? You can even check if a user is Speaking https://discordapp.com/developers/docs/game-sdk/lobbies#onspeaking

Jump-Suit avatar Mar 24 '20 22:03 Jump-Suit

I mean, there are no api to check the connection to lobby AT arbitrary timings --- checking the connection by the Result passed to the callback function for ConnectLobby or ConnectVoice is available only in the callback function, but under some situations we may want to check it afterwards.

For example, I'm now creating a game which uses multiple lobbies with connecting to / disconnecting from them frequently. After a number of times connecting/disconnecting multiple lobbies, perhaps it might be difficult to track exactly which lobbies the user is connecting to currently, and thus testing and debugging the behavior of the application is difficult. API for checking lobby connection status available at arbitrary timing would be helpful for such situation.

iTakeshi avatar Mar 25 '20 05:03 iTakeshi