Create wasm gateway module

This commit is contained in:
bitfl0wer 2023-11-16 16:24:02 +01:00
parent e9bf3b32a0
commit 739f2c8b71
3 changed files with 19 additions and 2 deletions

View File

@ -1 +1 @@
use ws_stream_wasm::*;

View File

@ -0,0 +1,14 @@
use tokio::task::JoinHandle;
use super::*;
#[allow(dead_code)] // FIXME: Remove this, once used
#[derive(Debug)]
pub struct WasmHeartbeatHandler {
/// How ofter heartbeats need to be sent at a minimum
pub heartbeat_interval: Duration,
/// The send channel for the heartbeat thread
pub send: Sender<HeartbeatThreadCommunication>,
/// The handle of the thread
handle: JoinHandle<()>,
}

View File

@ -1,2 +1,5 @@
pub mod gateway; pub mod gateway;
pub use gateway::*; pub mod heartbeat;
use super::*;
use gateway::*;
use heartbeat::*;