Skip to content

Commit 09ab8f0

Browse files
committed
[Modify] Add it
1 parent fe409a1 commit 09ab8f0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

websocket-sharp/WebSocketFrame.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,16 @@ private static void readPayloadDataAsync (
637637
stream.ReadBytesAsync (llen, 1024, compl, error);
638638
}
639639

640+
private static string utf8Decode (byte[] bytes)
641+
{
642+
try {
643+
return Encoding.UTF8.GetString (bytes);
644+
}
645+
catch {
646+
return null;
647+
}
648+
}
649+
640650
#endregion
641651

642652
#region Internal Methods

0 commit comments

Comments
 (0)