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
Titouan Rigoudy
bb73e71da2
Remove macro_use for log crate.
4 years ago
Titouan Rigoudy
236ccc56a1
Add timestamp to room messages.
Also introduce an injection seam for the system clock.
4 years ago
Titouan Rigoudy
b62022b864
Simplify MessageHandler for single-threaded use.
4 years ago
Titouan Rigoudy
794cba3fe4
Remove executor, exedute jobs single-threaded.
4 years ago
Titouan Rigoudy
2cf82bb77b
Upgrade to 2021 edition.
4 years ago
Titouan Rigoudy
35dbad1ded
Remove fledgling server from client crate.
4 years ago
Titouan Rigoudy
8b2e6aeae2
Introduce testing server for client tests.
Make proto testing server abstract over connection handlers.
4 years ago
Titouan Rigoudy
f347c81c24
Store room messages as we receive them.
4 years ago
Titouan Rigoudy
8f490cf1e9
Handle LoginStatusRequest.
4 years ago
Titouan Rigoudy
1e28829f55
Fix compilation error.
Remove `cfg(test)` attribute from `RoomMap::get_strict`.
4 years ago
Titouan Rigoudy
793a23474c
Respond immediately to erroneous RoomJoinRequest.
4 years ago
Titouan Rigoudy
187bd36ec6
Use thiserror for room errors.
4 years ago
Titouan Rigoudy
3c4487f764
Write tests for RoomJoinResponseHandler.
4 years ago
Titouan Rigoudy
0ce0f763f2
Fix flaky test.
4 years ago