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
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
82f4330545
Start handling peer connect request.
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
f972cd5ae2
Send message timestamp to controller client.
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
8f490cf1e9
Handle LoginStatusRequest.
4 years ago
Titouan Rigoudy
82d8897aa8
Remove unused import.
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
Titouan Rigoudy
f2b241cffe
Send details about room with RoomJoinResponse.
4 years ago
Titouan Rigoudy
17513ef377
Last test for the control listener.
4 years ago
Titouan Rigoudy
de20326200
One more test for the control listener.
4 years ago
Titouan Rigoudy
61a16795e0
Improve control listener test, fix shutdown handling.
4 years ago
Titouan Rigoudy
2dcd7ceca3
Write first test for control listening code.
4 years ago
Titouan Rigoudy
17bf55f117
Improve control channel variable naming.
4 years ago
Titouan Rigoudy
c2b19896b3
Handle sending messages to rooms.
4 years ago
Titouan Rigoudy
aff9b062ba
Always close websocket.
4 years ago
Titouan Rigoudy
45e1b5fa24
Refactor IncomingHandler.
4 years ago
Titouan Rigoudy
54aebf7a87
Simplify outgoing control path.
4 years ago
Titouan Rigoudy
064bdedf1d
Connect outgoing channel to websocket.
4 years ago
Titouan Rigoudy
f74d11b07c
Connect client to outgoing control handler.
4 years ago
Titouan Rigoudy
52838efeb1
Introduce useless OutgoingHandler.
4 years ago
Titouan Rigoudy
896b99a1fe
Introduce IncomingHandler.
4 years ago
Titouan Rigoudy
231809ef2a
Extract logic out of control::listen().
4 years ago
Titouan Rigoudy
f278e56ae6
Run cargo fmt.
4 years ago
Titouan Rigoudy
0f081a7a80
Replace ws dependency with tokio-tungstenite.
4 years ago
Titouan Rigoudy
ab70428930
Connect control requests to executor in async mode.
4 years ago
Titouan Rigoudy
27d0539a41
Replace rustc-serialize with serde.
4 years ago
Titouan Rigoudy
316dd6d582
Write remaining control response serde tests.
4 years ago
Titouan Rigoudy
2227cafe0a
Add serde support for control responses.
Start writing tests, add TODO for the others.
4 years ago
Titouan Rigoudy
4274d5a1a4
Rework control request serde tests.
4 years ago
Titouan Rigoudy
46b7fed632
Introduce serde for ControlRequest.
4 years ago
Titouan Rigoudy
dd7819c805
Format client.
4 years ago
Titouan Rigoudy
a7f48e12aa
Extract proto module to its own crate.
4 years ago
Titouan Rigoudy
d718e8d883
Define workspace and client crate.
4 years ago