update close() usage

Signed-off-by: BilligsterUser <billigsteruser@protonmail.com>
This commit is contained in:
BilligsterUser
2023-02-17 22:54:15 +01:00
committed by fiatjaf
parent 3d93ec8446
commit 7bfd23af3c
4 changed files with 8 additions and 10 deletions

View File

@@ -120,7 +120,7 @@ let event = await relay.get({
ids: ['44e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245']
})
await relay.close()
relay.close()
```
To use this on Node.js you first must install `websocket-polyfill` and import it: