gobwas/ws and nhooyr/websocket depending on your requirements

Reply to this note

Please Login to reply.

Discussion

I tried.

nhooyr is incapable of connecting to many relays because of some gotcha: https://github.com/nbd-wtf/go-nostr/pull/79

gobwas doesn't have support for deflate at all and many relays require that.

Hmm didn’t know about the nhooyr bug, but there exists a wsflate package for gobwas

Indeed, that exists. I tried to plug it in, but I think I failed. There are no docs, the API is weird. https://github.com/nbd-wtf/go-nostr/commit/304b0a0477ee030d757f45fef406d4572e8ccb10

Can you do it? I can put up a bounty.