open socket in web worker and use that to send frames to server