NO_AUTH_HEADERS_WARNING:"No auth parameters supplied to <PusherProvider />. Your events will be unauthenticated." = "No auth parameters supplied to <PusherProvider />. Your events will be unauthenticated."
Hook to provide a trigger function that calls the server defined in PusherProviderProps.triggerEndpoint using fetch.
Any auth?.headers in the config object will be passed with the fetch call.
Hook to provide a trigger function that calls the server defined in
PusherProviderProps.triggerEndpoint
usingfetch
. Anyauth?.headers
in the config object will be passed with thefetch
call.const trigger = useTrigger<{message: string}>('my-channel'); trigger('my-event', {message: 'hello'});