chore(WebSocketShard): log Discord requested reconnects (#4066)

This commit is contained in:
Vlad Frangu 2020-04-12 21:57:50 +03:00 committed by GitHub
parent a07c3c2f94
commit e5fac8c32f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -407,6 +407,7 @@ class WebSocketShard extends EventEmitter {
this.identify();
break;
case OPCodes.RECONNECT:
this.debug('[RECONNECT] Discord asked us to reconnect');
this.destroy({ closeCode: 4000 });
break;
case OPCodes.INVALID_SESSION: