mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-15 04:56:12 +00:00
11 lines
329 B
Rust
11 lines
329 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.clone())
|
||
|
.event(NetworkEvent::UpdateNetworkType, update_network_ty)
|
||
|
}
|