Initial work to allow socket.io clients to be used.