Resolve #543
This commit is contained in:
parent
5df0e102fd
commit
ad67886f96
|
@ -89,9 +89,11 @@ export default class Stream extends EventEmitter {
|
|||
*/
|
||||
@autobind
|
||||
private onClose() {
|
||||
if (this.state == 'connected') {
|
||||
this.state = 'reconnecting';
|
||||
this.emit('_disconnected_');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback of when received a message from connection
|
||||
|
|
Loading…
Reference in a new issue