What is Nostr?
/ Olive Grove Eggs
npub10dp…9zws
2024-09-01 07:45:05
in reply to nevent1q…vgdd

Olive Grove Eggs on Nostr: Up all night learning node.js or more accurately, hamming my way through the basics ...

Up all night learning node.js or more accurately, hamming my way through the basics so I can see whats going on with the nostr relay running on my phone. Thanks for that initial nudge. Or rather thanks to you I haven't had much sleep haha.

Anyway, perhaps can you point me in the right direction or to a smarter cookie than me, to get me over the line?

Terminal says I'm set up, I think that's what the following means?

... yo$ npm run start > nostr-server@1.0.0 start /Users/yo/nostr-server > node . WebSocket server is running on ws://localhost:4869

Client connected
Connected to the server
Received: Hello Waster
Message from server: Echo: Hello Waster

But the Kiwi browser on the phone times out. The Firefox for Mac browser says Upgrade Required. Safari not playing either. I turned the relay on and off in case that is part of the process.

What are the URL options? Is it ws://localhost:4869 in the address bar, or am I missing something obvious?

I don't have WiFi, but the phone's connected by Bluetooth to the computer and that has an IP address showing in preferences. And they must be paired judging by Terminal message.

Someone online said it was the browsers not recognising websockets. But Kiwi is Chrome based, no?

AI hasn't helped, #asknostr is my last hope :)

#chickens are fed, I'm off to bed now. Cheers
Author Public Key
npub10dpmrjay77xcu6z2sxsv7h7dfl6puzcxgyd6ssxkwh9th8sdgk3sj39zws