blocshop / sockets-for-cordova

Cordova plugin for socket network communication
136 stars 127 forks source link

Multiple requests in parallel on IOS get mixed up #26

Open kmckee opened 8 years ago

kmckee commented 8 years ago

Hello,

First off, thanks for creating this plugin!

I believe there is an issue with the iOS code when multiple requests are kicked off concurrently.

The data events that I receive after opening multiple connections appear to be randomly swapping between the different connections. In other words, if I open up two connections (A and B), I'll get data from connection A in connection B's data event, and A's data will go to connection B's data event.

I have not tested on windows phone, but I have beat on the android code and I've not been able to recreate it there. It only appears to affect the iOS code.

I may try to dig into it, but I'm not really fluent in objective C.

Thanks, Kyle

/cc @mohlsen @yaworsw @kwpeters

ghost commented 7 years ago

+1 same issue here

kitolog commented 6 years ago

+1 same issue here

kitolog commented 6 years ago

I fixed the issue, see details in my fork https://github.com/kitolog/sockets-for-cordova