devloping servers in cloudlink - help

does cl have a disconnect callback?
and in the case no, how would i check a disconnect