Type Alias: RelayAuthHandler()
@roomful/relay / RelayAuthHandler
Type Alias: RelayAuthHandler()
Section titled “Type Alias: RelayAuthHandler()”RelayAuthHandler = (
peerId,roomId,token) =>void|boolean|Promise<void|boolean>
Defined in: packages/relay/src/server.ts:116
Handles relay auth checks for token-bearing join requests.
Parameters
Section titled “Parameters”peerId
Section titled “peerId”string
The joining peer identifier.
roomId
Section titled “roomId”string
The requested room identifier.
string
The resolved bearer token.
Returns
Section titled “Returns”void | boolean | Promise<void | boolean>
false to reject the join, otherwise a truthy/void success result.