A socket.io plugin for Vue.js that adds $socket instance property and socket events option to Vue components. Version 0.2.3 is the latest and only release, published in 2018. This package requires socket.io-client and does NOT support native WebSockets; it is a thin wrapper around socket.io. Notable drawbacks: no active maintenance, no TypeScript support, limited documentation, and it does not work with Vue 3. Alternatives include vue-native-websocket or custom implementation.
npm install vue-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows plugin installation, connection options, listening to events, and emitting messages.
Use vue-native-websocket or implement custom WebSocket integration.
Manually install socket.io-client: npm install socket.io-client
Define events under 'socket: { events: { ... } }' in component options.Run: npm install socket.io-client
Ensure Vue.use(VueWebsocket) is called before creating any component.
Double-check import and Vue.use() call; use this.$socket (dollar prefix).