Skip to content

For private channels, how to reconnect when authentication fails? #478

@jin123456bat

Description

@jin123456bat

Echo Version

2.x

Laravel Version

10

PHP Version

8.1

NPM Version

7

Database Driver & Version

No response

Description

Assuming that for private channels, the connection will be re-established automatically once the network is disconnected. All private channels are protected by tokens; if the token expires, it will result in a normal Socket connection but authentication failure on the laravel-echo-server. Since no handler function is bound to the error event, the client fails to handle this scenario.

Steps To Reproduce

Establish a connection with a valid token, wait for the token to expire, and then disconnect the network.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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