Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Can we listen to io events from the client side? #539

@PushyPants

Description

@PushyPants

first off, thank you so much for creating and maintaining this package! You've saved me so much time and energy!

I'm trying to listen to reconnect events and the current syntax listens to the socket instance only (as far as I know).

sockets: {
    listener(data) {
    // do something with data
    }
}

but as noted below as of 3+ the socket instance no longer listens to reconnect events
image

is there a way for us to listen to IO events? or is there a reserved reconnect method provided by the package that we can listen to?

I've tried:

sockets: {
    reconnect(data) {
    }
}

and:

mounted() {
	this.$socket.client.io.on('reconnect', () => {
		//do stuff
	})
}

in either instance I'm not able to listen to reconnect events.

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