Skip to content

Commit

Permalink
Merge pull request #111 from xksoft/master
Browse files Browse the repository at this point in the history
fix SocketIO v3 Binary message Bug
  • Loading branch information
doghappy committed Jan 12, 2021
2 parents 45f9ff2 + 813af8f commit 78636c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SocketIOClient/WebSocketClient/ClientWebSocket.cs
Expand Up @@ -178,7 +178,7 @@ private async Task ListenAsync()
#if DEBUG
Trace.WriteLine($"{DateTime.Now} Binary message");
#endif
_io.InvokeBytesReceived(binaryResult.Skip(1).ToArray());
_io.InvokeBytesReceived(_io.Options.EIO == 4 ? binaryResult.ToArray() : binaryResult.Skip(1).ToArray());
}
}
}
Expand Down

0 comments on commit 78636c7

Please sign in to comment.