A question on WebWorker

10 views
Skip to first unread message

gmhwxi

unread,
Oct 25, 2015, 10:32:24 PM10/25/15
to ats-lang-users

In case someone is familiar with WebWorker.

I called postMessage twice in a row inside a worker's code:

postMessage('Hello1');
postMessage("Hello2');

To my BIG surprise, the message posted later was received earlier
when I used Firefox. With Chromium, the messages were received in
the FIFO order, which seems very natural.

So my question is this: Did Firefox really give a correct implementation of
the semantics of postMessage? If so, it is kind of like UDP, which makes
programming a great deal more difficult! Why?



Reply all
Reply to author
Forward
0 new messages