Rewrote how sockets (WebSockets and raw) are handled on the host.