_error(event) {
        const error = event.error ? event.error : event;
        if (error) {
            this.manager.client.emit(_utils.ClientEvent.SHARD_ERROR, error, this);
        }
    }
/**
     * Called whenever the websocket encounters an error.
     * @param {WebSocket.ErrorEvent} event
     * @private
     */
Called whenever the websocket encounters an error.
Called whenever the websocket encounters an error .
_error(event) {
        const error = event.error ? event.error : event;
        if (error) {
            this.manager.client.emit(_utils.ClientEvent.SHARD_ERROR, error, this);
        }
    }
_error ( event ) { const error = event . error ? event . error : event ; if ( error ) { this . manager . client . emit ( _utils . ClientEvent . SHARD_ERROR , error , this ) ; } }
Called whenever the websocket encounters an error.
Called whenever the websocket encounters an error .