fix: req-key -> req-event.

This commit is contained in:
fiatjaf 2021-01-12 19:09:35 -03:00
parent f4fd261084
commit 0be9c408be
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "nostr-tools",
"version": "0.1.3",
"version": "0.1.4",
"description": "Tools for making a Nostr client.",
"main": "index.js",
"repository": {

View File

@ -85,7 +85,7 @@ export function relayConnect(url, onEvent, onNotice) {
},
async reqEvent(params) {
await untilOpen
ws.send('req-key:' + JSON.stringify(params))
ws.send('req-event:' + JSON.stringify(params))
},
async reqKey(params) {
await untilOpen