Skip to content
Roomful is in public beta — install with the @beta tag. Share feedback →

Type Alias: RelayAuthHandler()

@roomful/relay


@roomful/relay / 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.

string

The joining peer identifier.

string

The requested room identifier.

string

The resolved bearer token.

void | boolean | Promise<void | boolean>

false to reject the join, otherwise a truthy/void success result.