anyMesh.connect('<name>', ['<channel>']); appears to offer no callback functionality, so there's no way of determining if an error occurred on connection, such as an inability to connect or a name collision.
Would it be feasible to add this functionality, so an app can either automatically generate a name and connect without user intervention, or at least notify a user if the name they selected is already in-use within the mesh?
For the time being, I'm just generating a UUID with node-uuid on each app start and hoping they don't collide (rare, but possible) on connection.