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

Decouple notifications websocket handling from chat operations #26724

Merged
merged 4 commits into from
Jan 29, 2024
Merged
Changes from 1 commit
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 osu.Game/Online/API/DummyAPIAccess.cs
Original file line number Diff line number Diff line change
@@ -148,7 +148,7 @@ public void UpdateStatistics(UserStatistics newStatistics)

public IHubClientConnector? GetHubConnector(string clientName, string endpoint, bool preferMessagePack) => null;

public IChatClient GetChatClient() => new PollingChatClientConnector(this);
public IChatClient GetChatClient() => new TestChatClientConnector(this);

public RegistrationRequest.RegistrationRequestErrors? CreateAccount(string email, string username, string password)
{
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@

namespace osu.Game.Tests
{
public class PollingChatClientConnector : PersistentEndpointClientConnector, IChatClient
public class TestChatClientConnector : PersistentEndpointClientConnector, IChatClient
{
public event Action<Channel>? ChannelJoined;

@@ -29,7 +29,7 @@ public void RequestPresence()
// don't really need to do anything special if we poll every second anyway.
}

public PollingChatClientConnector(IAPIProvider api)
public TestChatClientConnector(IAPIProvider api)
: base(api)
{
Start();