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
This commit is contained in:
efim
2023-04-26 22:28:22 +04:00
parent 90e886c62d
commit 9db42cb522
5 changed files with 82 additions and 76 deletions

View File

@@ -28,7 +28,7 @@ object MyHttpService {
Stream
.emits(TestModels.testChangesList)
.covary[IO]
.metered(1.second) ++ Stream.never[IO]
.metered(1.second)
)
.map(state => WebSocketFrame.Text(state.asJson.noSpaces))