Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May need to modify the description of the callback OnLobbyMemberDisconnected #765

Open
ZhangHuan0407 opened this issue Apr 29, 2024 · 1 comment
Assignees

Comments

@ZhangHuan0407
Copy link

ZhangHuan0407 commented Apr 29, 2024

The note reads as follows:
// Invoked when a lobby member leaves the lobby.
public static event Action<Lobby, Friend> SteamMatchmaking.OnLobbyMemberDisconnected

When I first read this description, I thought the currect account listens to the disconnection information of other accounts

To Reproduce
Steps to reproduce the behavior:

  1. I have two steam accounts ("Alpha" and "Beta") and logged in on different PCs.
  2. Account "Alpha" create lobby, account "Beta" join lobby.
  3. Account "Beta" unplug the network cable from your PC directly.
  4. Account "Beta" invoke SteamMatchmaking.OnLobbyMemberDisconnected.
  5. About 30 seconds delay, Account "Alpha" invoke SteamMatchmaking.OnLobbyMemberLeave

Expected behavior
A description of this callback in the Steam documentation:
User disconnected without leaving the lobby first.

I believe that the note should be amended to read as follows:
// Invoked when the user on the current Steam client is disconnected
public static event Action<Lobby, Friend> SteamMatchmaking.OnLobbyMemberDisconnected

Desktop (please complete the following information):

  • OS: MacOS, Windows 11
  • Unity:Unity 2022.3.19

Additional context

@survivalq
Copy link

Small little tip, use sandboxie to use 2 steam accounts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants