Added check for debug view with socket.io