Skip to content

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

@helloxxb

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();
}

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