Skip to content

Reconnect event does not to be trigger #335

@xandros15

Description

@xandros15

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions