Skip to main content

Vue Composables

npm install @sukko/vue

Functions​

createSukkoPlugin(pluginOptions: SukkoPluginOptions): Plugin​


useConnectionState(): ConnectionStateResult​


useSubscription(options: UseSubscriptionOptions<T>): UseSubscriptionResult<T>​


useSukkoClient(): SukkoClient​


useSukkoEvent(event: K, handler: unknown): void​


Types​

ConnectionState​


ConnectionStateResult​


Message​


SukkoClientEvents​


SukkoClientOptions​


SukkoPluginOptions​


SukkoProviderProps​


TypedMessage<T>​


UseSubscriptionOptions<T>​


UseSubscriptionResult<T>​


Constants​

SukkoProvider​