Skip to content

andreaselia/vue3-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue v3 Socket.IO

A simple Vue.js v3 plugin for Socket.IO

Install

npm install vue3-socket
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