Add the ability to not use MessagePack when creating a HubConnector

This commit is contained in:
Dean Herbert
2021-08-02 14:44:51 +09:00
parent 1cd967b351
commit 617ff40de7
5 changed files with 13 additions and 7 deletions

View File

@ -257,8 +257,8 @@ namespace osu.Game.Online.API
this.password = password;
}
public IHubClientConnector GetHubConnector(string clientName, string endpoint) =>
new HubClientConnector(clientName, endpoint, this, versionHash);
public IHubClientConnector GetHubConnector(string clientName, string endpoint, bool preferMessagePack) =>
new HubClientConnector(clientName, endpoint, this, versionHash, preferMessagePack);
public RegistrationRequest.RegistrationRequestErrors CreateAccount(string email, string username, string password)
{