2022-01-03 19:50:08 +08:00

11 lines
331 B
Rust

use crate::{event::NetworkEvent, handlers::*, services::ws::FlowyWSConnect};
use lib_dispatch::prelude::*;
use std::sync::Arc;
pub fn create(ws_manager: Arc<FlowyWSConnect>) -> Module {
Module::new()
.name("Flowy-Network")
.data(ws_manager)
.event(NetworkEvent::UpdateNetworkType, update_network_ty)
}