Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/streaminghub/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public class ChatHub : StreamingHubBase<IChatHub, IChatHubReceiver>, IChatHub

public async ValueTask LeaveAsync()
{
room.All.OnLeave(ConnectionId.toString());
room.All.OnLeave(userName);
await room.RemoveAsync(Context);
Comment on lines +154 to 155
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought RemoveAsync should be called first here, but I left it as is.
By the way, in the implementation of samples/ChatApp, RemoveAsync is called first.

await this.room.RemoveAsync(this.Context);
this.room.All.OnLeave(this.myName);

}

Expand Down