Basic implementation of websocket

This commit is contained in:
2025-11-20 16:06:00 +01:00
parent 0d8905d842
commit a1b22699e9
7 changed files with 240 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ use matrixgw_backend::broadcast_messages::BroadcastMessage;
use matrixgw_backend::constants;
use matrixgw_backend::controllers::{
auth_controller, matrix_link_controller, matrix_sync_thread_controller, server_controller,
tokens_controller,
tokens_controller, ws_controller,
};
use matrixgw_backend::matrix_connection::matrix_manager::MatrixManagerActor;
use matrixgw_backend::users::User;
@@ -133,6 +133,7 @@ async fn main() -> std::io::Result<()> {
"/api/matrix_sync/status",
web::get().to(matrix_sync_thread_controller::status),
)
.service(web::resource("/api/ws").route(web::get().to(ws_controller::ws)))
})
.workers(4)
.bind(&AppConfig::get().listen_address)?