vue3-websocket
Advanced tools
Comparing version
{ | ||
"name": "vue3-websocket", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Simple package for implementing WebSocket into your Vue 3 application", | ||
@@ -43,3 +43,3 @@ "main": "dist/index.js", | ||
"license": "MIT", | ||
"gitHead": "e2d2bd2fcb78a325898e5befa21c8697be6eb8f4" | ||
"gitHead": "51e27bd1cf83ffbbb61642b62a278a336dff6e89" | ||
} |
# Vue 3 WebSocket | ||
> [!IMPORTANT] | ||
> Since v2.0.0 it's not a plugin anymore, but a composable | ||
@@ -20,2 +19,14 @@ | ||
You'll also need zod to be installed | ||
``` | ||
pnpm add -D zod | ||
``` | ||
or | ||
``` | ||
npm i zod --save-dev | ||
``` | ||
For connection you should provide WS/WSS address as a string line or an object data | ||
@@ -22,0 +33,0 @@ |
14904
0.63%143
8.33%