Skip to content

Event:'ping' not firing on Manager on 4.1.2 #1475

@tonymccallie

Description

@tonymccallie

We are needing to programmatically catch the 'ping' event. The documentation indicates this is possible here:
https://socket.io/docs/v4/client-api/#Event-%E2%80%98ping%E2%80%99
But we are unable to do this. All other Manager events are working fine.

Socket.IO client version: 4.1.2

Client

    this.socket.io.on('{error|reconnect|etc}', (error) => {
      //all work great
    });

    this.socket.io.on('ping', () => {
      console.warn('ping');
      //never fires on 4.1.2
    });

I couldn't find any know issues with this. Is it a known bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions