This is super cool @David Herman excited to check it out
d
David Herman
12/16/2023, 10:38 PM
Thanks! I don't want to oversell anything, but it's a fun demo at least.
And happy to get Kotlin devs in the door with examples showcasing how to talk to AI APIs.
Honestly, API streams (which wrap web workers behind the scenes) are one of the most fun features to use in Kobweb IMO. They give you a really easy way to create a persistent connection with your Kobweb server while also supporting Kobweb's live reloading behavior.
Hope more people try them out over time, to help ensure the feature is as useful and robust as possible.
👍 1
a
Alexander Black
12/18/2023, 4:21 PM
Sounds awesome! I don’t think you’re over selling. I actually haven’t done much with web workers before, so it could be a cool way to explore that API
d
David Herman
12/18/2023, 5:09 PM
Oh whoops I mistyped. They wrap web sockets, not web workers.
I have web workers on the brain, I'd like to investigate and support that soon: https://github.com/varabyte/kobweb/issues/389
👍 1
a
Alexander Black
12/19/2023, 3:49 AM
Haha definitely been there. Web sockets are cool too. 🤩 🤩