add socket.io to the client