Re: chat over gemini (or, let's play with streaming text)


Michael Lazar <lazar.michael22@gmail.com> writes:

> On Mon, Oct 4, 2021 at 2:45 PM Omar Polo <op@omarpolo.com> wrote:
>> The idea is similar to the one presented by solderpunk in "A vision for
>> gemini applications"
>>
>> gemini://gemini.circumlunar.space/users/solderpunk/gemlog/a-vision-for-g
emini-applications.gmi
>>
>> and, frankly, I'm quite disappointed nobody has built something like
>> this before.  (or at least I haven't been able to find it.  I know
>> kensanata has made some experiments with a mush, but I haven't played
>> with it (yet))
>>
>> The idea is to provide two pages: one that accepts input via the
>> response code 10 and appends to a file, the second is a literal `tail
>> -f'.  Simple, but it works, and it's immediate.  As soon as someone
>> sends something, all the clients reading from `tail -f' gets the
>> message.
>
> Looks familiar!
>
> gemini://chat.mozz.us/
>
> (source code) 
https://github.com/michael-lazar/jetforce/blob/master/examples/chatroom.py
>
> - Michael

Oooouch sorry, I haven't seen that!

The idea of a infinite loop of redirects for providing input is really
clever, and of course the implementation is way, way better!

Thanks for sharing! ;)

---

Previous in thread (2 of 12): 🗣️ Michael Lazar (lazar.michael22 (a) gmail.com)

Next in thread (4 of 12): 🗣️ almaember (almaember (a) disroot.org)

View entire thread.