Skip to content
This repository was archived by the owner on Mar 21, 2020. It is now read-only.
This repository was archived by the owner on Mar 21, 2020. It is now read-only.

请问如何在 on disconnect 后调用重连机制 #22

Description

@TimonPeng
socket.on('disconnect', function () {
  console.log('disconnect')
  socket.io.reconnect();
});

只会尝试重连一次,不会循环尝试。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions