Created logic to detect continuing zero being sent via socket.io