fix: add a check for debug view with socket.io

Closes #11