Answer handling yay

This commit is contained in:
Lett Osprey 2026-04-13 20:49:57 +02:00
parent f3020b7cb0
commit 1a410072c2
9 changed files with 79 additions and 42 deletions

View file

@ -37,15 +37,22 @@ pub fn main() {
["lustre", "runtime.mjs"] -> serve_runtime()
["client.js"] -> serve_static("client.js")
["static", file] -> serve_static(file)
["socket", "live", id] ->
sockethandler.serve(req, card.component(), id, room_handler)
["socket", "control", id] ->
sockethandler.serve(req, control.component(), id, room_handler)
["socket", "single", id] ->
["socket", "live", id, pin] ->
sockethandler.serve(req, card.component(), id, pin, room_handler)
["socket", "control", id, pin] ->
sockethandler.serve(
req,
control.component(),
id,
pin,
room_handler,
)
["socket", "single", id, pin] ->
sockethandler.serve_slow(
req,
answerlist.component(),
id,
pin,
room_handler,
state_handler,
)