-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathd.ts
30 lines (30 loc) · 868 Bytes
/
d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* Nymph PubSub Config
*/
export interface Config {
/**
* Determine whether a client's origin is allowed to connect.
*/
originIsAllowed: (origin: string) => boolean;
/**
* The URLs of the Nymph-PubSub servers to directly publish to. These servers
* are how this host will enter the PubSub network. If you only have one
* PubSub server, it needs to be listed here.
*/
entries: string[];
/**
* The URLs of additional Nymph-PubSub servers to relay publishes to. If this
* host is a PubSub server, these servers are how it will continue into your
* PubSub network.
*/
relays: string[];
/**
* Allow clients to request to be notified when other clients subscribe to the
* same queries.
*/
broadcastCounts: boolean;
/**
* Function to log PubSub info/error messages.
*/
logger: (...args: any[]) => void;
}