Only listen to socket.io in preview mode