@sukko/vue

Vue 3 composables and provider for Sukko real-time WebSocket SDK
456
Install
npm install @sukko/vue
Latest Version:0.1.1
Vue:3
License:MIT
Last Updated:Oct 21, 2026
Links: npm
Maintainer: sukko-dev

@sukko/vue

Vue 3 composables and provider for the Sukko real-time WebSocket SDK.

Install the Sukko plugin and subscribe with composables.

Install

npm i @sukko/sdk @sukko/vue @sukko/websocket

Usage

import { createApp } from "vue";
import { createSukkoPlugin } from "@sukko/vue";
import { WebSocketTransport } from "@sukko/websocket";

createApp(App)
  .use(createSukkoPlugin({
    transport: new WebSocketTransport({ url: "wss://your-server.com/ws" }),
    token: "your-jwt-token",
  }))
  .mount("#app");
<script setup lang="ts">
import { useSubscription, useConnectionState } from "@sukko/vue";

const { state } = useConnectionState();
const { data } = useSubscription<ChatMessage>({
  channels: ["acme.general.chat"],
});
</script>

<template>
  <p>Status: {{ state }}</p>
  <p>Latest: {{ data?.text }}</p>
</template>

Documentation

License

MIT

Version History

Version Released License
0.1.1 MIT
0.1.0 MIT
Pre-releases (1)
Version Released License
0.0.0-stage