From 6704650dcfccf609ccc203308df9004e0b511bb6 Mon Sep 17 00:00:00 2001 From: polwex Date: Mon, 6 Oct 2025 08:25:12 +0700 Subject: fixes to nostrill ws --- app/lib/nostr/req.hoon | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'app/lib/nostr') diff --git a/app/lib/nostr/req.hoon b/app/lib/nostr/req.hoon index ce566bc..e53159c 100644 --- a/app/lib/nostr/req.hoon +++ b/app/lib/nostr/req.hoon @@ -1,17 +1,16 @@ /- sur=nostr /+ js=json-nostr, sr=sortug, - lib=nostr, server, ws=websockets |% ++ parse-client-msg - |= jon=json ^- (unit client-msg:nsur) + |= jon=json ^- (unit client-msg:sur) (client-msg:de:js jon) -++ ok-client-event |= [=event:nsur ok=? msg=@t] - ^- relay-msg +++ ok-client-event |= [=event:sur ok=? msg=@t] + ^- relay-msg:sur [%ok id.event ok msg] ++ ws-response - |= msg=relay-msg:sur ^- (list card:agent:gall) + |= [wid=@ msg=relay-msg:sur] ^- (list card:agent:gall) =/ jon (relay-msg:en:js msg) =/ octs (json-to-octs:server jon) =/ res-event=websocket-event:eyre [%message 1 `octs] -- cgit v1.2.3