Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect event does not to be trigger #335

Open
xandros15 opened this issue Jul 16, 2022 · 0 comments
Open

Reconnect event does not to be trigger #335

xandros15 opened this issue Jul 16, 2022 · 0 comments

Comments

@xandros15
Copy link

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:

import { io } from 'socket.io-client'

const socket = io()

export default socket
import VueSocketIO from 'vue-socket.io'
import store from '../store'
import socket from './socket'

const PREFIX = 'socket.'

const vueSocketIO = new VueSocketIO({
  debug: process.env.NODE_ENV === 'development',
  connection: socket,
  vuex: {
    store,
    actionPrefix: PREFIX,
    mutationPrefix: PREFIX,
  },
})

I'm using socket.io 4.4.1 and vuex 3.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant