Add sockets property to all targets

This commit is contained in:
Jonathan Staab
2023-04-25 15:08:31 -05:00
parent 7cfd022f16
commit b74f2e8e3d
4 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "paravel", "name": "paravel",
"version": "0.1.14", "version": "0.1.15",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "paravel", "name": "paravel",
"version": "0.1.14", "version": "0.1.15",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"husky": "^8.0.3", "husky": "^8.0.3",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "paravel", "name": "paravel",
"version": "0.1.14", "version": "0.1.15",
"description": "Yet another toolkit for nostr", "description": "Yet another toolkit for nostr",
"repository": { "repository": {
"type": "git", "type": "git",
+3
View File
@@ -11,6 +11,9 @@ export class Plex {
}, },
}) })
} }
get sockets() {
return [this.socket]
}
async send(...payload) { async send(...payload) {
await this.socket.connect() await this.socket.connect()
+3
View File
@@ -10,6 +10,9 @@ export class Relay {
}) })
}) })
} }
get sockets() {
return [this.socket]
}
async send(...payload) { async send(...payload) {
await this.socket.connect() await this.socket.connect()