Vue Simple WebSocket

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

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.