What is Nostr?
pippellia
npub176p…vgup
2025-02-01 08:47:17

pippellia on Nostr: I've started programming seriously only 4 months ago, so there are many things that I ...

I've started programming seriously only 4 months ago, so there are many things that I still don't understand. Here is one:

Why do we always use websocket to connect to relays?
If I have to post or get one single event, why not a single http?

Why do I have to use http, then upgrade to websocket, then send/receive one event and then close the connection?

#asknostr
Author Public Key
npub176p7sup477k5738qhxx0hk2n0cty2k5je5uvalzvkvwmw4tltmeqw7vgup