Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 8968c40

Browse files
authored
Merge pull request #90 from synonymdev/feat/update-rpc
feat(rpc): support instantiating using Hyperswarm instead of Slashtag
2 parents f74afb3 + 2702172 commit 8968c40

7 files changed

Lines changed: 10129 additions & 91 deletions

File tree

declarations.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare module 'hyperswarm' {
4545
topics: Uint8Array[]
4646
}
4747

48-
export = class hyperswarm extends EventEmitter {
48+
class Hyperswarm extends EventEmitter {
4949
constructor(opts?: any);
5050
server: Server;
5151
connections: Iterable;
@@ -72,6 +72,8 @@ declare module 'hyperswarm' {
7272

7373
on(event: 'connection', listener: (connection: any, peerInfo: PeerInfo) => any)
7474
};
75+
76+
export = Hyperswarm
7577
}
7678

7779
// file://./node_modules/b4a/index.js

0 commit comments

Comments
 (0)