💾 Archived View for circumlunar.thebackupbox.net › ~epoch › blog › veilid-3 captured on 2024-06-20 at 11:51:08. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

a kind of chat thing

previous post

update

since the last post, while I was reading more issues and stuff in the veilid repo

specifically, this one

I noticed that there was some mechanism for sending arbitrary data directly instead of just poking stuff into the DHT.

kind of makes total sense, I'd just been distracted poking at the DHT stuff.

ok, using the scripts I've made, it should be possible to join an anonymous chat over veilid.

(the scripts live in here)

first, you need some way to view messages being sent to you. you can either use veilid-cli and run the command

command> enable app_messages

or you can use veilid-watch-appmessages from my veilid-hacks repo.

I'd suggest the second, because veilid-cli will truncate messages if they're too long.

then you need to setup a private route to receive messages.

$ veilid-new-private-route
[first line is your route ID]
[second (pretty long) line is your route blob]

then you need to publish that route... I don't have a script for this atm. so in veilid-cli do:

command> route publish [your route id]

and it'll respond with your route blob again.

now, you need to remote import /my/ route, so you can start sending messages to me.

and quickly after that, you need to send a message for veilid will think the route is dead. so run these two commands right after each other.

$ veilid-import-remote-private-route ARAeUAECAQJRBAEBURgBAg8wRExWEAT_rNeKUMgrXkYDURiyQrUG8-KqgDmxVuuxEiqctwDTaBcmAAARBARBEAL_mOC_V-NuD04DZRSz5CuA2eP-o1qNQ36-ZXd_Qt1NGC0MEQQDMQ3yAf8iHWwKCx83HgkpOkLTHUPfRY57USH4zxU86_1J6bP0dsDxnC6QoPRow1Yn30gzwBtqdmA39s7hJ7jn-riJADbOIk_ghv7h_EANVMON1WhJpGk_NFWTERhs
$ veilid-appmessage 'QTqA_UMv5pfMWntw3vU8Aiux45yFxtT9vjIYbEwgE20' 'import [your route blob]'

that second command will tell my computer what your route blob is so that it can import it and send you messages.

right after you send it the import it'll reply with a message. :)

you can start sending any other messages with veilid-appmessage to my route ID and they'll be sent to everyone else that has done this.