We can't guarantee that the desktopName event has been fired before the connect event.
const foo = () => { ... };