We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccbe750 commit 58803b1Copy full SHA for 58803b1
OneScriptClientServer/OneScriptClientServer/ScsSupport.cs
@@ -1006,19 +1006,7 @@ private void ReceiveCallback(IAsyncResult ar)
1006
1007
if (out1)
1008
{
1009
- string magicSign = Convert.ToString(rv[0], 16).ToUpper() + " " +
1010
- Convert.ToString(rv[1], 16).ToUpper() + " " +
1011
- Convert.ToString(rv[2], 16).ToUpper() + " " +
1012
- Convert.ToString(rv[3], 16).ToUpper();
1013
-
1014
- if (magicSignature.Contains("," + magicSign + ","))
1015
- {
1016
- OnMessageReceived(new ScsRawDataMessage(rv));
1017
- }
1018
- else
1019
1020
- OnMessageReceived(new ScsTextMessage(Encoding.UTF8.GetString(rv)));
1021
+ OnMessageReceived(new ScsTextMessage(Encoding.UTF8.GetString(rv)));
1022
1023
rv = new byte[0];
1024
out1 = false;
0 commit comments