Skip to content

Commit 968fc3f

Browse files
authored
Update TransportRouter.cs
Use the user specified JSON serializer instead of the default system one.
1 parent 317473b commit 968fc3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SocketIOClient/Transport/TransportRouter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public async Task ConnectAsync()
7777

7878
int index = text.IndexOf('{');
7979
string json = text.Substring(index);
80-
var info = System.Text.Json.JsonSerializer.Deserialize<HandshakeInfo>(json);
80+
var info = JsonSerializer.Deserialize<HandshakeInfo>(json);
8181
Sid = info.Sid;
8282
if (info.Upgrades.Contains("websocket") && AutoUpgrade)
8383
{

0 commit comments

Comments
 (0)