diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java index 7213bb730..8f95b674f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java @@ -159,7 +159,7 @@ public class WebSocketModule extends ReactContextBaseJavaModule { @Override public void onMessage(WebSocket webSocket, ByteString bytes) { - String text = bytes.utf8(); + String text = bytes.base64(); WritableMap params = Arguments.createMap(); params.putInt("id", id); params.putString("data", text);