Initial implementation of a socket.io upgrade.