diff options
| author | polwex <polwex@sortug.com> | 2025-10-06 08:25:12 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-10-06 08:25:12 +0700 |
| commit | 6704650dcfccf609ccc203308df9004e0b511bb6 (patch) | |
| tree | bcc36657b338decb84a44e08fb42ffadf7e51924 /app/lib/nostr/req.hoon | |
| parent | 8426c0c275fc824ab55edef4fa99b3a9bacf64d8 (diff) | |
fixes to nostrill ws
Diffstat (limited to 'app/lib/nostr/req.hoon')
| -rw-r--r-- | app/lib/nostr/req.hoon | 9 |
1 files changed, 4 insertions, 5 deletions
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] |
