In the current implementation, WebSocket connection is supposed to be established on the main thread even if a request is issued from a web worker. This is because implementations of the connection sequence are bound with the main thread. This limits the worker runs independently of the main thread and makes it difficult to proceed with other projects like nested workers ( issue 31666 ) and off-main-thread worker start/termination.
Comment 1 by nhiroki@chromium.org
, Mar 26 2018