Using QWebChannel into Web SharedWorker
-
Hi guys!
I have common web socket connection created into SharedWorker and I wish to use QWebChannel. But I don't know how can I create it.
So,//login.hml // contains login form and login.js // also include qwebchannel.js //login.js // create shared worker let webSocketWorker = new SharedWorker("myworker.js"); //myworker.js // import QWebChannel from "./qwebchannel.js" // error // create web socket client let ws = new WebSocket(url); // I wish following but QWebChannel unavailable here let channel = new QWebChannel(ws, ...) { ... };But import qwebchannel.js into myworker.js doesn't allowed.
Any ideas?
Thanks a lot,
Alex