Skip to content

Commit c4f9f78

Browse files
vojtorozele
authored andcommitted
Sending WebSocket messages using Utf8 (microsoft#417)
* Passing status code and reason to WebSocketModule.close on Windows * setting message type to utf8 for websockets
1 parent ab978e6 commit c4f9f78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ReactWindows/ReactNative/Modules/WebSocket/WebSocketModule.cs

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public void connect(string url, string[] protocols, JObject options, int id)
3636
{
3737
var webSocket = new MessageWebSocket();
3838

39+
webSocket.Control.MessageType = SocketMessageType.Utf8;
40+
3941
if (protocols != null)
4042
{
4143
foreach (var protocol in protocols)

0 commit comments

Comments
 (0)