Created
February 11, 2026 15:43
-
-
Save koteitan/38344ddacbd66f55b80104699b1856d4 to your computer and use it in GitHub Desktop.
oneliner of nostr client for browser console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ws=new WebSocket("wss://yabu.me")).onopen=()=>ws.send('["REQ","tl",{"kinds":[1],"limit":20}]'),ws.onmessage=e=>{d=JSON.parse(e.data);d[0]=="EVENT"&&console.log(d[2].content)}; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Paste it into the browser console (Ctrl+Shift+J). The subscription will start and you'll receive notes in real time.