Why Nostr? What is Njump?
2025-03-17 03:40:48

阿甘 on Nostr: ...

似乎找到返回NOTICEerror信息的bug了。重新链接发送的请求格式错了。
// 发送订阅请求,确保只接收新消息
socket.send(JSON.stringify(["SUBSCRIBE", { pubkey: targetUserKey, limit: 1 }]));

应该是:
socket.send(JSON.stringify(["REQ", "sub1", { kinds: [1], authors: [targetUserKey] }]));

试看看
};



Author Public Key
npub13zyg3zysfylqc6nwfgj2uvce5rtlck2u50vwtjhpn92wzyusprfsdl2rce