Global Feed Post Login
Replying to Avatar Yonle

We all know that connections to #nostr relays are mostly done via websocket.

And then i got an idea: How about i create a way to communicate with Nostr relays via HTTP instead?

You see, We have QUIC already, And we know that most social media apps were using HTTP to communicate. But we are using websocket. So what's wrong with it? As a mobile data user, I am struggling to solve the high bandwidth problem.

So there we go, an prototype nhttp (Nostr over HTTP). It got basic stuff already: REQ, and event publishing

https://github.com/Yonle/nhttp

Avatar
Yonle 2y ago

nhttp compatible relay is available to test at https://yonlecoder.lecturify.net

NOTE!!: As it was using bostr, It's slow. Performance may be different when used in real relay software, which you could do by making nhttp server to connect to your relay and configure reverse proxy to forward /req and /publish path.

Reply to this note

Please Login to reply.

Discussion

No replies yet.