]> git.proxmox.com Git - mirror_novnc.git/commit - tests/test.rfb.js
Don't fake open events in Websock
authorPierre Ossman <ossman@cendio.se>
Sun, 18 Apr 2021 11:55:11 +0000 (13:55 +0200)
committerPierre Ossman <ossman@cendio.se>
Sun, 18 Apr 2021 12:26:30 +0000 (14:26 +0200)
commitde9fc9508cb4bc6776792f0c7731da17519d4f24
tree7c382f4e705992227930571ccd5beee7ab52fee8
parent9376191fc4500b9001bc0dc3ff9f0e0351797319
Don't fake open events in Websock

We don't know if the caller is prepared to receive those events right
now as normally they would get them on a fresh new stack later. We also
can't delay delivery since then we might deliver the event after any
pending "message" events.

Better to push the problem one layer up to the caller, which now needs
to be more aware of the state of the WebSocket object it is trying to
use.
core/rfb.js
core/websock.js
tests/test.rfb.js
tests/test.websock.js