From 849c5d03b7c11229144bb32987f26e515be9f1ae Mon Sep 17 00:00:00 2001 From: boufni95 Date: Thu, 26 Sep 2024 20:19:16 +0000 Subject: [PATCH] up --- src/services/nostr/handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/nostr/handler.ts b/src/services/nostr/handler.ts index b9823c73..c84a2c5f 100644 --- a/src/services/nostr/handler.ts +++ b/src/services/nostr/handler.ts @@ -1,6 +1,6 @@ //import { SimplePool, Sub, Event, UnsignedEvent, getEventHash, signEvent } from 'nostr-tools' -import * as ws from 'ws' -Object.assign(global, { WebSocket: ws }); +import WebSocket from 'ws' +Object.assign(global, { WebSocket: WebSocket }); import { SimplePool, Event, UnsignedEvent, getEventHash, finalizeEvent, Relay, nip44 } from 'nostr-tools' //import { encryptData, decryptData, getSharedSecret, decodePayload, encodePayload, EncryptedData, nip44 } from 'nostr-tools' import { ERROR, getLogger } from '../helpers/logger.js'