11 Commits

Author SHA1 Message Date
efim
d7d4e2be9d bugfix: need to recognize owner after relogin
playerid is not stable right now, need to use nickname
2023-04-28 11:54:51 +04:00
efim
3158a75f5d bugfix: leaving room needs to clear votes 2023-04-28 11:43:59 +04:00
efim
62d63546c4 adding alpha create room capability 2023-04-28 10:08:04 +04:00
efim
e1364c9b9b simple routes mapped to room service 2023-04-28 09:28:57 +04:00
efim
8098f24552 rooms service methods implementation
removed stubbed room, but thing compiles and maybe will work?
lot's of pain with trying to store Topic inside Ref together with Room.

storing them together in a tuple means for the room there should always
be a topic
but then modifying the room in side of ref is uncomfortable, because i
want to do F[Unit] send updated room together with room modification,
but Ref seems to take in only pure function to update the value

there got to be maybe some semaphors or something like that?
and storing topics where? in a separate state?
that would maybe simplify things, but i'm coding well into the night and
that's not a good idea really

now before testing this with front end, i need a way to create a room.
2023-04-28 02:54:15 +04:00
efim
bd38a29b6d backend: move roomService usage to httpService
no longer used in auth module,
ready to connect rest routes to room service
2023-04-28 00:46:25 +04:00
efim
1f28a03d47 temporarily hardcoding backend room and session 2023-04-26 08:56:51 +04:00
efim
b29d1a1ef1 new auth method for joining room 2023-04-25 12:17:37 +04:00
efim
1b71c942ec adding room service, joining room
adding nick password into model, stored in the Room
to allow more secure joining for repeated times
2023-04-25 11:41:32 +04:00
efim
2244f38348 scalafmt all 2023-04-25 10:25:36 +04:00
efim
64267a5f67 backend - adding room service and wiring
preparing to create a better auth module that uses room service
2023-04-25 09:55:45 +04:00