Skip to content

can't parse String type,when node call emit('eventName', JSON.stringify({name:'hj',age:23})); #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
huangjilaiqin opened this issue Dec 23, 2016 · 1 comment

Comments

@huangjilaiqin
Copy link

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
image

@huangjilaiqin
Copy link
Author

@gcrabtree can u fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant