Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "core/PusherProvider"

Index

Variables

Const PusherContext

PusherContext: Context<PusherContextValues> = React.createContext<PusherContextValues>({})

Const __PusherContext

__PusherContext: Context<PusherContextValues> = PusherContext

Functions

Const CorePusherProvider

  • CorePusherProvider(__namedParameters: { _PusherRuntime: undefined | Pusher; children: ReactNode; clientKey: undefined | string; cluster: undefined | string; defer: boolean; props: props; triggerEndpoint: undefined | string }): Element
  • Provider that creates your pusher instance and provides it to child hooks throughout your app. Note, you can pass in value={{}} as a prop if you'd like to override the pusher client passed. This is handy when simulating pusher locally, or for testing.

    Parameters

    • __namedParameters: { _PusherRuntime: undefined | Pusher; children: ReactNode; clientKey: undefined | string; cluster: undefined | string; defer: boolean; props: props; triggerEndpoint: undefined | string }
      • _PusherRuntime: undefined | Pusher
      • children: ReactNode
      • clientKey: undefined | string
      • cluster: undefined | string
      • defer: boolean
      • props: props
      • triggerEndpoint: undefined | string

    Returns Element

Generated using TypeDoc