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
Titouan Rigoudy
5d82bbc818
Rename SetPrivilegedUsersHandler -> PrivilegedUsersResponseHandler.
4 years ago
Titouan Rigoudy
4ffe17e141
Rename SetRoomListHandler -> RoomListResponseHandler.
4 years ago
Titouan Rigoudy
e0b95fdbdf
Immediately reply to RoomListRequest.
4 years ago
Titouan Rigoudy
3beb31087b
Basic handling for RoomMessageResponse: forward it.
4 years ago
Titouan Rigoudy
abeedd9065
Update dependencies, specify them uniformly.
4 years ago
Titouan Rigoudy
a740dad9de
Remove unused crates.
4 years ago
Titouan Rigoudy
ead5936138
Introduce Config struct.
4 years ago
Titouan Rigoudy
815a414df8
Move config module to client crate.
4 years ago
Titouan Rigoudy
f70c7d5dfe
Remove superfluous version constants.
4 years ago
Titouan Rigoudy
82d8897aa8
Remove unused import.
4 years ago
Titouan Rigoudy
b69bef26dc
Return login info from Client::login().
4 years ago
Titouan Rigoudy
c3cc5a26cb
Remove mio dependency, old proto code.
4 years ago
Titouan Rigoudy
c1d3f30918
Have Client return a Worker.
4 years ago
Titouan Rigoudy
077296743e
Simplify Listener tests.
4 years ago
Titouan Rigoudy
ac1c2bc551
Continue listening after failed WebSocket handshake.
4 years ago
Titouan Rigoudy
f7cdae23d4
Add test.
4 years ago
Titouan Rigoudy
f85079f028
Wrap over-long line.
4 years ago
Titouan Rigoudy
023d1f6f35
Remove warning about Listener.address() being unused.
4 years ago