mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 05:22:54 +08:00
Switch clients to MessagePack mode
This commit is contained in:
parent
9537090d28
commit
20cfa991bf
@ -70,7 +70,7 @@ namespace osu.Game.Online.Multiplayer
|
||||
{
|
||||
options.Headers.Add("Authorization", $"Bearer {api.AccessToken}");
|
||||
})
|
||||
.AddNewtonsoftJsonProtocol(options => { options.PayloadSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; })
|
||||
.AddMessagePackProtocol()
|
||||
.Build();
|
||||
|
||||
// this is kind of SILLY
|
||||
|
@ -121,7 +121,7 @@ namespace osu.Game.Online.Spectator
|
||||
{
|
||||
options.Headers.Add("Authorization", $"Bearer {api.AccessToken}");
|
||||
})
|
||||
.AddNewtonsoftJsonProtocol(options => { options.PayloadSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; })
|
||||
.AddMessagePackProtocol()
|
||||
.Build();
|
||||
|
||||
// until strong typed client support is added, each method must be manually bound (see https://github.com/dotnet/aspnetcore/issues/15198)
|
||||
|
Loading…
Reference in New Issue
Block a user