Trait jamsocket_wasm::prelude::JamsocketServiceFactory  [−][src]
pub trait JamsocketServiceFactory<C>: 'static + Send + Sync where
    C: JamsocketContext, {
    type Service: JamsocketService;
    type Error: Debug;
    fn build(
        &self, 
        room_id: &str, 
        context: C
    ) -> Result<Self::Service, Self::Error>;
}Expand description
Re-exports useful items from jamsocket and jamsocket_wasm_macro.
Enables an object to become a JamsocketService of the associated Service type.
Associated Types
type Service: JamsocketService
type Service: JamsocketService
The type of JamsocketService that the object implementing this trait builds.