Documentation / @super-line/server / resolvePrincipal
Function: resolvePrincipal()
resolvePrincipal(
conn,identify?):string
Defined in: conn.ts:83
The ACL principal for a connection: the stable identify key when configured, else the (random, per-connection) conn.id. Always returns a string — store access rules never key on undefined. Distinct from identify's raw output (which may be undefined, used for presence).
Parameters
conn
identify?
(conn) => string | undefined
Returns
string