Compare commits
4 Commits
92bc8e5ce8
...
cf27a6518f
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | cf27a6518f | |
Derrick Hammer | 952b3a0d1a | |
Derrick Hammer | 0d7090206c | |
Derrick Hammer | 3a207c107c |
|
@ -5,7 +5,7 @@
|
|||
"main": "dist/index.js",
|
||||
"dependencies": {
|
||||
"@lumeweb/libkernel-universal": "git+https://git.lumeweb.com/LumeWeb/libkernel-universal.git",
|
||||
"@noble/hashes": "^1.2.0",
|
||||
"@noble/hashes": "^1.3.0",
|
||||
"@siaweb/libweb": "git+https://git.lumeweb.com/LumeWeb/libsiaweb.git",
|
||||
"async-mutex": "^0.4.0",
|
||||
"b4a": "^1.6.3",
|
||||
|
@ -16,8 +16,8 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@types/b4a": "^1.6.0",
|
||||
"@types/node": "^18.13.0",
|
||||
"prettier": "^2.8.4",
|
||||
"@types/node": "^18.15.11",
|
||||
"prettier": "^2.8.7",
|
||||
"pretty": "^2.0.0",
|
||||
"typescript": "^4.9.5"
|
||||
}
|
||||
|
|
11
src/index.ts
11
src/index.ts
|
@ -191,8 +191,7 @@ export class Socket extends Client {
|
|||
|
||||
this._remotePublicKey = info.remotePublicKey;
|
||||
this._rawStream = info.rawStream;
|
||||
|
||||
Protomux.from(this, { slave: true });
|
||||
await this.swarm.emitAsync("setup");
|
||||
}
|
||||
on<T extends EventEmitter.EventNames<string | symbol>>(
|
||||
event: T,
|
||||
|
@ -253,14 +252,6 @@ export class Socket extends Client {
|
|||
this.ensureEvent(event as string);
|
||||
this.eventUpdates[event].push(update);
|
||||
}
|
||||
|
||||
public async syncProtomux(action: string, id: number) {
|
||||
return this.callModuleReturn("syncProtomux", {
|
||||
id: this.id,
|
||||
action,
|
||||
data: id,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export const MODULE = "_AVKgzVYC8Sb_qiTA6kw5BDzQ4Ch-8D4sldQJl8dXF9oTw";
|
||||
|
|
Loading…
Reference in New Issue