JS is not widely used for servers that need to handle high load with low latency. Go's throughput is a bit lower than C/C++/Java/Rust but its latency is way lower.

anyway, i am not turning my relay project into something that requires 50 different toolchains to be installed. linux, bash, go, the end.

Reply to this note

Please Login to reply.

Discussion

that JS library is a client library...

the js-sdk one? no, it has client and server

https://github.com/getAlby/js-sdk/tree/master/src/nwc

i actually didn't notice the client part of it and refactored only the types and wallet service parts first, still gotta finish the client. i need both for completeness, i think the client side would only be needed to make payments outbound, the server would be for receiving them. or maybe i do need both, idk, but i expect to need the client later when i build a UI

btw, why is the encryption functions for the client only doing nip-04?