triniwiz / nativescript-socketio

Socket.IO for nativescript
Apache License 2.0
71 stars 31 forks source link

problems on iOS #44

Closed budilovskiy closed 6 years ago

budilovskiy commented 7 years ago

There is a problem with sending / receiving messages on iOS. For example this piece of code: on client:

this.socket.emit("string", "SOME STRING");

on server:

socket.on('string', (value: string) => {
    console.log("Received string from client: " + value);
}

writes to console this: Received string from client: undefined

The same problem is observed on sending / receiving JSON objects and on both direction: from client to server and vise versa

Full example of this problem is available at https://github.com/AlexanderRay/socketIoWithIosIssue

okdevwww commented 7 years ago

@budilovskiy so did you solve this problem? I have got same problem.

juanitozambada commented 7 years ago

@budilovskiy @triniwiz so did you solve this problem? I have got same problem.

budilovskiy commented 7 years ago

@okdevwww @juanitozambada No, unfortunately, I did not solve the problem