Implement authorization over socket.io and HTTP.