I use nodejs as server,when I call emit('change',{name:'hj',age:23}); is ok, client can get the obj,
but when I call emit('change',JSON.stringify({name:'hj',age:23})); I get always get null.
the way solved the problem.
change the code below the file:(the red code is add)
.../node_modules/react-native-socketio/android/src/main/java/com/gcrabtree/rctsocketio/SocketIoJSONUtil.java
I use nodejs as server,when I call emit('change',{name:'hj',age:23}); is ok, client can get the obj, but when I call emit('change',JSON.stringify({name:'hj',age:23})); I get always get null. the way solved the problem. change the code below the file:(the red code is add) .../node_modules/react-native-socketio/android/src/main/java/com/gcrabtree/rctsocketio/SocketIoJSONUtil.java