UNPKG

use-stomp

Version:

react provider, class decorator, and a hook for websockets using the stomp protocol

7 lines (6 loc) 197 B
export declare type UseStompProps<T> = [ T, (otherChannelOrMessage: string | T, message?: T) => void, boolean ]; export default function useStomp<T>(channel: string): UseStompProps<T>;