Skip to content

Commit 3ce3537

Browse files
committed
fix state_change
1 parent 53b3865 commit 3ce3537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/push.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Push.prototype.createConnection = function () {
8383
}
8484
if (event === 'pusher:connection_established') {
8585
_this.connection.socket_id = data.socket_id;
86-
_this.connection.state = 'connected';
86+
_this.connection.updateNetworkState('connected');
8787
_this.subscribeAll();
8888
}
8989
if (event.indexOf('pusher_internal') !== -1) {

0 commit comments

Comments
 (0)