mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 16:48:50 +00:00
fix: req-key -> req-event.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nostr-tools",
|
"name": "nostr-tools",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"description": "Tools for making a Nostr client.",
|
"description": "Tools for making a Nostr client.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
2
relay.js
2
relay.js
@@ -85,7 +85,7 @@ export function relayConnect(url, onEvent, onNotice) {
|
|||||||
},
|
},
|
||||||
async reqEvent(params) {
|
async reqEvent(params) {
|
||||||
await untilOpen
|
await untilOpen
|
||||||
ws.send('req-key:' + JSON.stringify(params))
|
ws.send('req-event:' + JSON.stringify(params))
|
||||||
},
|
},
|
||||||
async reqKey(params) {
|
async reqKey(params) {
|
||||||
await untilOpen
|
await untilOpen
|
||||||
|
|||||||
Reference in New Issue
Block a user