More implementation of cross-browser sockets.