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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user