Create wasm gateway module
This commit is contained in:
parent
e9bf3b32a0
commit
739f2c8b71
|
@ -1 +1 @@
|
|||
|
||||
use ws_stream_wasm::*;
|
||||
|
|
|
@ -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<()>,
|
||||
}
|
|
@ -1,2 +1,5 @@
|
|||
pub mod gateway;
|
||||
pub use gateway::*;
|
||||
pub mod heartbeat;
|
||||
use super::*;
|
||||
use gateway::*;
|
||||
use heartbeat::*;
|
||||
|
|
Loading…
Reference in New Issue