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

The type of JamsocketService that the object implementing this trait builds.

Required methods

Non-destructively build a JamsocketService from self.

Implementors