Skip to content

Commit f629080

Browse files
committed
rename to namespace
1 parent 2d05a9d commit f629080

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/adapter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export function adapterUtils(
77
return {
88
peers: globalPeers,
99
publish(topic: string, message: any, options) {
10-
for (const peers of options?.group
11-
? [globalPeers.get(options.group) || []]
10+
for (const peers of options?.namespace
11+
? [globalPeers.get(options.namespace) || []]
1212
: globalPeers.values()) {
1313
let firstPeerWithTopic: Peer | undefined;
1414
for (const peer of peers) {
@@ -49,7 +49,7 @@ export interface AdapterInstance {
4949
readonly publish: (
5050
topic: string,
5151
data: unknown,
52-
options?: { compress?: boolean; group?: string },
52+
options?: { compress?: boolean; namespace?: string },
5353
) => void;
5454
}
5555

0 commit comments

Comments
 (0)