Titouan Rigoudy
34d0b1886d
Migrate RoomMessageResponseHandler.
2 years ago
Titouan Rigoudy
00c6f1758e
Migrate RoomMessageRequestHandler.
2 years ago
Titouan Rigoudy
7fb8e3b180
Migrate RoomListResponseHandler.
2 years ago
Titouan Rigoudy
5a756c1a63
Use sort_by() instead of sort_by_key().
2 years ago
Titouan Rigoudy
fc3a88d41e
Migrate RoomListRequestHandler.
2 years ago
Titouan Rigoudy
92b6e18d5e
Migrate RoomJoinResponseHandler.
2 years ago
Titouan Rigoudy
c5d0d9558e
Migrate RoomJoinRequestHandler.
2 years ago
Titouan Rigoudy
09d7940e3a
Disambiguate requests and responses.
2 years ago
Titouan Rigoudy
4ba7815aa1
Move RoomJoinRequestHandler into RoomEventHandler.
2 years ago
Titouan Rigoudy
b52ef853a5
Avoid reaching into RoomEntry from RoomMap.
2 years ago
Titouan Rigoudy
42338c1c59
Delete RoomError.
2 years ago
Titouan Rigoudy
064cc9cbac
Add comments to room module.
2 years ago
Titouan Rigoudy
364c777f3e
Add test for set_tickers().
2 years ago
Titouan Rigoudy
685c4bf1ed
Add tests for insert_member() and remove_member().
2 years ago
Titouan Rigoudy
0daaf6f645
Move set_tickers() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
3f661aa2b8
Move {insert,remove}_member() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
a271ef85eb
Move leave() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
579655890f
Add TODO.
2 years ago
Titouan Rigoudy
80aa69558a
Suppress last remaining warnings.
2 years ago
Titouan Rigoudy
78b71b501c
Suppress warnings in room/map.rs.
2 years ago
Titouan Rigoudy
8f05c12430
Move start_leaving() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
30044af1c6
Move join() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
12707418d3
Move start_joining() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
a30c2c0fa8
Wrap RoomState in RoomEntry inside map.
2 years ago
Titouan Rigoudy
eff56ac051
Move tests from room/map.rs to room/state.rs.
2 years ago
Titouan Rigoudy
4c9b016d61
Rename Message to RoomMessage.
2 years ago
Titouan Rigoudy
15f279e6bc
Rename Visibility to RoomVisibility.
2 years ago
Titouan Rigoudy
d9be1d5f15
Rename Membership to RoomMembership.
2 years ago
Titouan Rigoudy
138f305da9
Rename Room to RoomState.
2 years ago
Titouan Rigoudy
e773b1500f
Introduce RoomNotFoundError.
2 years ago
Titouan Rigoudy
254bd2bce7
Use RoomMap::insert() in regular builds.
2 years ago
Titouan Rigoudy
8afdc9854b
Move Room et al. to room/state.rs.
2 years ago
Titouan Rigoudy
ef34f6d626
Introduce room submodule.
2 years ago
Titouan Rigoudy
214278b418
Handle messages in dispatcher, remove Job abstraction.
Introduce dependency injection to Dispatcher to allow testing.
TODO:
- introduce room/ submodule, move room.rs and room_event.rs in there
- dependency injecton for other handlers
3 years ago
Titouan Rigoudy
8d0e138125
Run cargo fmt.
3 years ago
Titouan Rigoudy
29577b1886
Handle peer address response.
4 years ago
Titouan Rigoudy
82f4330545
Start handling peer connect request.
4 years ago
Titouan Rigoudy
be6319177f
Remove unused async-stream dependency.
4 years ago
Titouan Rigoudy
5418a16cf9
Define PeerConnectionType enum.
4 years ago
Titouan Rigoudy
c05ed06809
Rename control::ws module to control::listener.
4 years ago
Titouan Rigoudy
35da08bf5c
Handle user list request.
4 years ago
Titouan Rigoudy
cbc9777be0
Move user name from State to Context.
4 years ago
Titouan Rigoudy
fd8bed689d
Define a constant for the channel buffer size.
4 years ago
Titouan Rigoudy
daa2a71b5b
Remove superfluous `use` statements.
4 years ago
Titouan Rigoudy
e5da19c111
Nit: add use declarations to main.
4 years ago
Titouan Rigoudy
c758eed820
Require -c config file command-line argument.
4 years ago
Titouan Rigoudy
5d86a29e96
Run in async mode by default.
4 years ago
Titouan Rigoudy
5bc80be02a
Implement reading configs from toml files.
4 years ago
Titouan Rigoudy
f972cd5ae2
Send message timestamp to controller client.
4 years ago
Titouan Rigoudy
1b5928a54a
Suppress last warnings.
4 years ago