{"id":48124,"library":"gzys-websocket-vue","title":"gzys-websocket-vue","description":"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.","status":"active","version":"1.5.2","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install gzys-websocket-vue","lang":"bash","label":"npm"},{"cmd":"yarn add gzys-websocket-vue","lang":"bash","label":"yarn"},{"cmd":"pnpm add gzys-websocket-vue","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency for Vue plugin","package":"vue","optional":false}],"imports":[{"note":"Default import for the plugin","wrong":"import { VueWebSocket } from 'gzys-websocket-vue'","symbol":"default","correct":"import VueWebSocket from 'gzys-websocket-vue'"},{"note":"Composable for Options or Composition API","wrong":"import useWebSocket from 'gzys-websocket-vue'","symbol":"useWebSocket","correct":"import { useWebSocket } from 'gzys-websocket-vue'"},{"note":"CommonJS not supported as package is ESM-only","wrong":"const VueWebSocket = require('gzys-websocket-vue')","symbol":"VueWebSocket","correct":"import VueWebSocket from 'gzys-websocket-vue'"}],"quickstart":{"code":"import { createApp } from 'vue'\nimport App from './App.vue'\nimport VueWebSocket from 'gzys-websocket-vue'\n\nconst app = createApp(App)\napp.use(VueWebSocket, {\n  url: process.env.VUE_APP_WS_URL || 'ws://localhost:8080',\n  autoReconnect: true\n})\napp.mount('#app')\n\n// In component\nimport { useWebSocket } from 'gzys-websocket-vue'\nexport default {\n  setup() {\n    const { status, message, send } = useWebSocket()\n    return { status, message, send }\n  }\n}","lang":"typescript","description":"Demonstrates plugin installation and composable usage in Vue 3 with Composition API."},"warnings":[{"fix":"Double-check the package name and install from a trusted registry or GitHub.","message":"Package name 'gzys-websocket-vue' is not officially published to npm registry; ensure correct package or verify source.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Review migration guide or changelog before upgrading.","message":"Version 1.5.2 may have breaking changes from earlier versions; check changelog.","severity":"breaking","affected_versions":">=1.5.0"},{"fix":"Consider using established alternatives like 'vue-native-websocket' or '@vueuse/core' websocket.","message":"Package may not be actively maintained; last release unknown.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'1.5.2':10 '2/3':34 'api':39 'appear':73 'automat':24 'built':61 'built-in':60 'cadenc':68 'compos':18 'configur':59 'connect':22,41 'design':31 'differenti':57 'event':26 'global':51 'gzys':2 'gzys-websocket-vu':1 'handl':27,46 'integr':6 'javascript':81 'key':56 'lifecycl':29 'manag':20,30 'messag':47 'metadata':72 'minim':58 'offer':36 'packag':12 'person':77 'plugin':16,49 'project':80 'provid':13,53 'reactiv':54,66 'reconnect':25,63 'regist':50 'releas':67 'server':44 'simpl':38 'state':55 'unclear':70 'untrack':79 'version':9 'vue':4,15,33,65 'vue.js':8 'websocket':3,5,21,43","created_at":"2026-06-07T16:55:02.285344+00:00","updated_at":"2026-06-07T16:55:02.285344+00:00","problems":[{"fix":"npm install gzys-websocket-vue --save","cause":"Package not installed or typo in name.","error":"Cannot find module 'gzys-websocket-vue'"},{"fix":"Use 'import VueWebSocket from ...' (default import).","cause":"Importing as named export instead of default.","error":"Uncaught TypeError: VueWebSocket is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"gzys-websocket-vue","openapi_spec":null,"status_page":null,"smithery":null,"categories":["messaging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}