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
Published at
2024-09-01 07:45:05Event JSON
{
"id": "8c5f47a401acb30d26029834e68e5e1ed870b9e496e0e3989aad993f6683ca55",
"pubkey": "7b43b1cba4f78d8e684a81a0cf5fcd4ff41e0b06411ba840d675cabb9e0d45a3",
"created_at": 1725176705,
"kind": 1,
"tags": [
[
"e",
"bfac08faa0a578c08e21685e3f52e9cad9599f6ef08800af2691540513fc1e90",
"",
"root"
],
[
"e",
"e6148b78f5a495c80a828fa7ddcf009a1cc0afbc7e679a9fa2c0cd44559e905f"
],
[
"e",
"a5fb71243287fe58d537a3b70f550de242e89816085362bd03f8e28ef9f7ff7e",
"",
"reply"
],
[
"p",
"3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24"
],
[
"p",
"7b43b1cba4f78d8e684a81a0cf5fcd4ff41e0b06411ba840d675cabb9e0d45a3"
],
[
"t",
"asknostr"
],
[
"t",
"chickens"
],
[
"r",
"node.js"
]
],
"content": "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.\n\nAnyway, perhaps can you point me in the right direction or to a smarter cookie than me, to get me over the line?\n\nTerminal says I'm set up, I think that's what the following means?\n\n... yo$ npm run start \u003e nostr-server@1.0.0 start /Users/yo/nostr-server \u003e node . WebSocket server is running on ws://localhost:4869 \n\nClient connected\nConnected to the server \nReceived: Hello Waster\nMessage from server: Echo: Hello Waster \n\nBut 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. \n\nWhat are the URL options? Is it ws://localhost:4869 in the address bar, or am I missing something obvious?\n\nI 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.\n\nSomeone online said it was the browsers not recognising websockets. But Kiwi is Chrome based, no?\n\nAI hasn't helped, #asknostr is my last hope :) \n\n#chickens are fed, I'm off to bed now. Cheers",
"sig": "33d7b000f25bd6064d12e3cefa1d4ea7946e036f00dbde4f2be9617d8a797979ee99b873e1a782746fbfa36dde9e7cb173cfacc63244bdb9095d2fc1ee1dd1a7"
}