Hiyve Components - v1.0.0
    Preparing search index...

    Interface UseRelayTopicResult<T>

    Value exposed by useRelayTopic<T>().

    interface UseRelayTopicResult<T> {
        isConnected: boolean;
        publish: (payload: T) => void;
        subscribe: (handler: RelaySubscribeHandler<T>) => () => void;
    }

    Type Parameters

    • T
    Index

    Properties

    isConnected: boolean
    publish: (payload: T) => void
    subscribe: (handler: RelaySubscribeHandler<T>) => () => void