Skip to content

push-vue.js 中的网络状态更新和其他版本的不一致,导致无法监听state_change事件 #17

Description

@helloxxb

push-vue.js

if (event === 'pusher:connection_established') {
    _this.connection.socket_id = data.socket_id;
    _this.connection.state = 'connected'; // 这一行有误
    _this.subscribeAll();
}

push.js

if (event === 'pusher:connection_established') {
    _this.connection.socket_id = data.socket_id;
    _this.connection.updateNetworkState('connected'); // 正确的调用
    _this.subscribeAll();
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions