Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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