a disconnect occurs when you refresh the page, close the tab/browser, or if the server loses connectivity to the client for any reason. this is to make sure we don't leak FileSystemWatchers on the server for disconnected clients