generateId method
generate socket.id
for the given nsp
@param {String} nsp @return {String} @api private
Implementation
String generateId(String nsp) {
if (nsp.startsWith('/')) nsp = nsp.substring(1);
return (nsp.isEmpty ? '' : (nsp + '#')) + (engine.id ?? '');
}