Commit Graph

13 Commits

Author SHA1 Message Date
efim ecb1717eb3 front: simple table control buttons 2023-04-27 11:57:20 +04:00
efim f8bf1b961b new logout button
triggers /api/logout and updates app loggedIn state
2023-04-27 10:34:40 +04:00
efim 9db42cb522 connect login and room pages via logged in state
moving websocket into being managed by the room component.
if the partent would want access to "user signal" it can ask via
observer.
that would mean bidirectionality, and i already hear screeching of my
intuitions from react, but maybe that's ok and in react i would still
scope the websocket to the room page, plus callbacks
2023-04-26 22:32:53 +04:00
efim 90e886c62d new Join Room form that requests authcookie
getting stubbed session #1,
with auth module stubbed to accept that session in.
and stubbed method for streaming room state,
but that's enough to start testing room calling api's for other actions

next - pass in observable from parent to re-toggle subscription
websocket after successful login
2023-04-26 11:42:40 +04:00
efim 1f28a03d47 temporarily hardcoding backend room and session 2023-04-26 08:56:51 +04:00
efim 2244f38348 scalafmt all 2023-04-25 10:25:36 +04:00
efim dfff814079 cleanup 2023-04-25 09:45:21 +04:00
efim 77b34a2ca7 change Map to List in model, scalajs didn't decode 2023-04-23 23:15:59 +04:00
efim f3e51a4750 fixing websocket, it was misspelled port
wow. just wow
2023-04-23 23:01:51 +04:00
efim 5ac864f15e not working: attempt to stream in websocket
added Vite proxy, tested with websocat, with direct js websocket.
the error seems to be Laminex related
2023-04-23 22:22:02 +04:00
efim 2c66a9a8c2 adding websocket connection to room state 2023-04-23 16:29:05 +04:00
efim df35f09b71 circe codec derivation to models 2023-04-23 15:00:00 +04:00
efim d8af92787d adding backend project
will try to do rest & websocket api with http4s
2023-04-23 11:19:38 +04:00