{"library":"vue-simple-websocket","type":"library","category":null,"description":"vue-simple-websocket v1.0.0 is a lightweight Vue.js plugin that provides a native reconnecting WebSocket client. It integrates seamlessly with Vue 3 using the plugin system, exposing a `$socketClient` global property with event handlers for open, message, close, and error events. Key differentiators include automatic reconnection with configurable intervals and a convenience `sendObj` method for sending JavaScript objects. The package is actively maintained but noted as still maturing; it has separate documentation for Vue 2.x support. Alternative solutions include Vue Socket.io and vue-native-websocket.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","Vue.js","vuejs","socket","vue","websocket","realtime"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install vue-simple-websocket","imports":["import VueSimpleWebsocket from 'vue-simple-websocket'","this.$socketClient.onMessage = (msg) => {}","app.use(VueSimpleWebsocket, url, options)"]},{"cmd":"yarn add vue-simple-websocket","imports":[]},{"cmd":"pnpm add vue-simple-websocket","imports":[]}],"homepage":"https://github.com/ramkumarshankar/vue-simple-websocket#readme","github":"https://github.com/ramkumarshankar/vue-simple-websocket","docs":null,"changelog":null,"pypi":null,"npm":"vue-simple-websocket","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}