-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
IOS receiving json with parentheses !!! #61
Comments
I add deserialize(), is not a solution but I need to continu to work until we have a real soulution // nodes-modules/nativescript-socketio/socketio.ios.d.js
SocketIO.prototype.on = function (event, callback) {
this.socket.onCallback(event, function (data, ack) {
data = deserialize(data); // HERE I RECEIVE [{msg: "HELLOE}] and I can use it
if (ack) {
callback(data[0], ack);
}
else {
callback(data[0]);
}
});
}; |
Sorry @kefahB, i'm a bit swamped with office work lately. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?
YES
Tell us about the problem
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
I use socio.io Server and when i emit event from server i recive :
no problem with android i receive :
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
"tns-android": {
"version": "4.1.3"
},
"tns-ios": {
"version": "4.1.1"
}
package.json
file of yourproject)
Thnk you :)
The text was updated successfully, but these errors were encountered: