pub fn connect_with_pubsub_and_middleware<TClient, THandler, TMiddleware>(
    handler: THandler
) -> (TClient, impl Future<Output = Result<(), RpcError>>)where
    TClient: From<RpcChannel>,
    TMiddleware: Middleware<Arc<Session, Global>> + Unpin,
    THandler: Deref<Target = MetaIoHandler<Arc<Session, Global>, TMiddleware>> + Unpin,
Expand description

Connects with pubsub specifying a custom middleware implementation.