Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreaselia/vue3-socket
A simple Vue.js v3 plugin for Socket.IO
https://github.com/andreaselia/vue3-socket
plugin socket-io v3 vue
Last synced: 2 months ago
JSON representation
A simple Vue.js v3 plugin for Socket.IO
- Host: GitHub
- URL: https://github.com/andreaselia/vue3-socket
- Owner: andreaselia
- License: mit
- Created: 2021-01-20T01:54:03.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-20T02:30:23.000Z (about 4 years ago)
- Last Synced: 2024-11-14T11:51:47.447Z (2 months ago)
- Topics: plugin, socket-io, v3, vue
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vue v3 Socket.IO
A simple Vue.js v3 plugin for Socket.IO
## Install
```bash
npm install vue3-socket
``````vue
import Vue3SocketIO from 'vue3-socket'const app = createApp(App)
// options is optional
app.use(Vue3SocketIO, {
connection: 'http://localhost:8080',
options: {}
})app.mount('#app')
```## Configuration
The `options` parameter is the standard client options which can be found at the link below.
https://socket.io/docs/v3/client-api/#io-url-options