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.
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:
Added a "good first issue" label because I think this should be a relatively isolated feature to the rest of Kobweb, but that doesn't mean it would be easy. However, if you're someone who has familiarity with web sockets already, I'd be happy to point you in the right direction!
Set this to milestone 1.0 just to make sure I consider it before then, but can punt to 1.1 in a pinch. I don't think it's a fundamental feature to Kobweb, especially as 1) most people use static layouts anyways and 2) scaling up REST operations is easy but web sockets may introduce complexities that need more thinking.
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:
Added a "good first issue" label because I think this should be a relatively isolated feature to the rest of Kobweb, but that doesn't mean it would be easy. However, if you're someone who has familiarity with web sockets already, I'd be happy to point you in the right direction!
Set this to milestone 1.0 just to make sure I consider it before then, but can punt to 1.1 in a pinch. I don't think it's a fundamental feature to Kobweb, especially as 1) most people use static layouts anyways and 2) scaling up REST operations is easy but web sockets may introduce complexities that need more thinking.