4 ms·
web workers don't have anything except message passing ability to the main js thread, they cant open sockets, and they can modify the dom, they are nearly worth
by throwaway2048 11y ago
web workers don't have anything except message passing ability to the main js thread, they cant open sockets, and they can modify the dom, they are nearly worthless.
- Shebanator 11y agoMy understanding is that you can use WebSockets within a web worker. But I haven't done it myself, so that could be wrong. In any event, the service worker specs are all still evolving, and I expect that as people try to build more sophisticated extensions on top of these APIs, they will mature to allow more sophisticated behavior.