Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ private SerializedItem SerializeEio4ConnectedMessage(string ns, object auth)

#region Read Message

private static void ReadMessage(IMessage message, EngineIO eio, string text)
private void ReadMessage(IMessage message, EngineIO eio, string text)
{
switch (message.Type)
{
Expand Down Expand Up @@ -343,11 +343,11 @@ private static void ReadMessage(IMessage message, EngineIO eio, string text)
}
}

private static void ReadOpenedMessage(IMessage message, string text)
private void ReadOpenedMessage(IMessage message, string text)
{
// TODO: Should deserializing to existing object
// But haven't support yet. https://github.com/dotnet/runtime/issues/78556
var newMessage = JsonSerializer.Deserialize<JsonMessage>(text, new JsonSerializerOptions
var newMessage = JsonSerializer.Deserialize<JsonMessage>(text, new JsonSerializerOptions(_options)
{
NumberHandling = JsonNumberHandling.AllowReadingFromString,
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
Expand Down Expand Up @@ -543,4 +543,4 @@ private static void ReadBinaryAckMessage(IMessage message, string text)

#endregion
}
}
}
Loading