mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
11 lines
321 B
Rust
11 lines
321 B
Rust
use crate::{event::NetworkEvent, handlers::*, services::ws::WsManager};
|
|
use lib_dispatch::prelude::*;
|
|
use std::sync::Arc;
|
|
|
|
pub fn create(ws_manager: Arc<WsManager>) -> Module {
|
|
Module::new()
|
|
.name("Flowy-Network")
|
|
.data(ws_manager)
|
|
.event(NetworkEvent::UpdateNetworkType, update_network_ty)
|
|
}
|