Registry / messaging / gzys-websocket-vue

gzys-websocket-vue

JSON →
library1.5.2jsnpmunverified

WebSocket integration for Vue.js, version 1.5.2. This package provides a Vue plugin and composable for managing WebSocket connections with automatic reconnection, event handling, and lifecycle management. Designed for Vue 2/3, it offers a simple API to connect to WebSocket servers and handle messages. The plugin registers globally and provides reactive state. Key differentiators: minimal configuration, built-in reconnection, and Vue reactivity. Release cadence is unclear from metadata; appears to be a personal or untracked project.

npm install gzys-websocket-vue
INSTALL
IMPORT
SIG · GZYS-WEBSOCKET-VUE
G
gzys-websocket-vue
messagingjavascriptv1.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import VueWebSocket from 'gzys-websocket-vue'
import { VueWebSocket } from 'gzys-websocket-vue'
Default import for the plugin
useWebSocket
import { useWebSocket } from 'gzys-websocket-vue'
import useWebSocket from 'gzys-websocket-vue'
Composable for Options or Composition API
VueWebSocket
import VueWebSocket from 'gzys-websocket-vue'
const VueWebSocket = require('gzys-websocket-vue')
CommonJS not supported as package is ESM-only

Demonstrates plugin installation and composable usage in Vue 3 with Composition API.

import { createApp } from 'vue' import App from './App.vue' import VueWebSocket from 'gzys-websocket-vue' const app = createApp(App) app.use(VueWebSocket, { url: process.env.VUE_APP_WS_URL || 'ws://localhost:8080', autoReconnect: true }) app.mount('#app') // In component import { useWebSocket } from 'gzys-websocket-vue' export default { setup() { const { status, message, send } = useWebSocket() return { status, message, send } } }
Debug
Known issues
gotchaPackage name 'gzys-websocket-vue' is not officially published to npm registry; ensure correct package or verify source.
fix
Double-check the package name and install from a trusted registry or GitHub.
affects: >=0.0.0
breakingVersion 1.5.2 may have breaking changes from earlier versions; check changelog.
fix
Review migration guide or changelog before upgrading.
affects: >=1.5.0
gotchaPackage may not be actively maintained; last release unknown.
fix
Consider using established alternatives like 'vue-native-websocket' or '@vueuse/core' websocket.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'gzys-websocket-vue'
Package not installed or typo in name.
fix
npm install gzys-websocket-vue --save
Uncaught TypeError: VueWebSocket is not a function
Importing as named export instead of default.
fix
Use 'import VueWebSocket from ...' (default import).
Upgrade
Version history
1.5.2latest on npm
Audit
Dependencies
vuerequiredPeer dependency for Vue plugin
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
gzys-websocket-vue — npm install gzys-websocket-vue · libregistry