Struct jamsocket_wasm::prelude::WrappedJamsocketService [−][src]
pub struct WrappedJamsocketService<S, C> where
S: SimpleJamsocketService,
C: JamsocketContext, { /* fields omitted */ }
Expand description
Re-exports useful items from jamsocket
and jamsocket_wasm_macro
.
Combines a SimpleJamsocketService with an owned JamsocketContext in order to implement
JamsocketService.
Implementations
Re-exports useful items from jamsocket
and jamsocket_wasm_macro
.
Trait Implementations
impl<S, C> JamsocketService for WrappedJamsocketService<S, C> where
S: SimpleJamsocketService,
C: JamsocketContext,
impl<S, C> JamsocketService for WrappedJamsocketService<S, C> where
S: SimpleJamsocketService,
C: JamsocketContext,
Called each time a client disconnects from the service, unless that disconnection will cause the service to be destroyed. Read more
Called each time a client sends a text message to the service.
Called when JamsocketContext::set_timer has been called on this service’s context, after the provided duration. Read more