varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.51k stars 66 forks source link

Add support for websockets in the Frontend <-> Backend API #233

Closed bitspittle closed 1 year ago

bitspittle commented 1 year ago

Right now, Kobweb can support creating a full stack web server where you can do all REST operations, but currently there's no official support for connections that stay open and continue to communicate.

See also: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API

It might be nice if ApiFetcher had an official API for doing this. But I need to investigate websockets in more detail first before knowing for sure.


Extra notes:

bitspittle commented 1 year ago

This is now in as API streams! Check out the README at https://github.com/varabyte/kobweb#define-api-streams