Vue-Socket.io icon indicating copy to clipboard operation
Vue-Socket.io copied to clipboard

😻 Socket.io implementation for Vuejs and Vuex

Results 56 Vue-Socket.io issues
Sort by recently updated
recently updated
newest added

I have a problem with connection to my server, which located at localhost:8080 I got the error with followeing message: `Access to XMLHttpRequest at 'http://localhost:3000/socket.io/?EIO=3&transport=polling&t=NO51tSB' from origin 'http://localhost:8080' has been...

my code like this main.js ``` import VueSocketIO from 'vue-socket.io' import config from '@/config/index' Vue.use( new VueSocketIO({ debug: false, connection: config.API_URL + ':' + config.SOCKET_PORT }) ) ``` chat.vue ```...

server ``` const express = require('express') const app = express() const server = require('http').createServer(app) express.json() express.urlencoded({extended: true}) const io = require('socket.io')(server, { origins: ["http://localhost:3000"], handlePreflightRequest: (req, res) => { res.writeHead(200,...

When I'm using vuex style to register all listeners, reconnect event is not recognized. If I'm using pure `io.on` it works correct. My implementation: ```js import { io } from...

In node_modules/vue-socket.io/dist/vue-socketio.js there is a line as: `{t.prototype.$socket=this.io,t.prototype.$vueSocketIo=this,t.mixin(n),i.info("Vue-Socket.io plugin enabled")}` I just changed the line as: `{t.config.globalProperties.$socket=this.io,t.config.globalProperties.$vueSocketIo=this,t.mixin(n),i.info("Vue-Socket.io plugin enabled")}` Simply changed "t.prototype"'s to "t.config.globalProperties"'s, and it works but don't know...

Added multiple connections actionPrefix and mutationPrefix functions ```javascript import Vue from 'vue' import store from './store' import App from './App.vue' import VueSocketIO from 'vue-socket.io' const app = SocketIO('http://localhost:1090', { useConnectionNamespace:...

I need to connect 2 sockets at the same time, without using vuex, but I'm not getting it

Can i change name $socket to other name. This name is conflict with VueNativeSock

i have seen your code changing in discussion. while the lastest version -- "3.0.10" didn't include this change. could you build a new one include it. Thanks

- Refer to socket.io offical api doc: https://socket.io/docs/v3/client-api/#new-managerurl-options