Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230401

Chrome.sockets.tcp problem to receive onReceive.addListener

$
0
0

you’ve got a timing window \

create {
connect
send
}
----
onReceive.addlistener({
 });
onReceiveError.addlistener({
 });
---

move the connect/send AFTER adding the listeners…

----
onReceive.addlistener({
 });
onReceiveError.addlistener({
 });
---
create({
connect
send
})
---

otherwise there is a timing window, where the send might happen before the listeners are setup… sometimes…
which is what you are seeing…


Viewing all articles
Browse latest Browse all 230401

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>