@@ -35,10 +35,11 @@ export interface RelayConfig extends ConsoleConfig, StorageConfig {
3535 readonly name ?: SimpleName ;
3636
3737 /**
38- * Callback to check if an {@link OwnerId} is allowed to access the relay.
38+ * Optional callback to check if an {@link OwnerId} is allowed to access the
39+ * relay. If this callback is not provided, all owners are allowed.
3940 *
40- * The callback receives the OwnerId and returns a {@link MaybeAsync} boolean:
41- * `true` to allow access, or `false` to deny.
41+ * The callback receives the { @link OwnerId} and returns a {@link MaybeAsync}
42+ * boolean: `true` to allow access, or `false` to deny.
4243 *
4344 * The callback can be synchronous (for SQLite or in-memory checks) or
4445 * asynchronous (for calling remote APIs).
@@ -54,7 +55,8 @@ export interface RelayConfig extends ConsoleConfig, StorageConfig {
5455 * Owners specify which relays to connect to via {@link OwnerTransport}. In
5556 * WebSocket-based implementations, this check occurs before accepting the
5657 * connection, with the OwnerId typically extracted from the URL Path (e.g.,
57- * `ws://localhost:4000/<ownerId>`).
58+ * `ws://localhost:4000/<ownerId>`). The relay requires the URL to be in the
59+ * correct format for OwnerId extraction.
5860 *
5961 * ### Example
6062 *
@@ -75,7 +77,7 @@ export interface RelayConfig extends ConsoleConfig, StorageConfig {
7577 * Promise.resolve(ownerId === "6jy_2F4RT5qqeLgJ14_dnQ"),
7678 * ```
7779 */
78- readonly isOwnerAllowed : ( ownerId : OwnerId ) => MaybeAsync < boolean > ;
80+ readonly isOwnerAllowed ? : ( ownerId : OwnerId ) => MaybeAsync < boolean > ;
7981}
8082
8183/**
0 commit comments