node_modules/binance/lib/util/beautifier.js
/**
     * Entry point to beautify WS message. EventType is determined automatically unless this is a combined stream event.
     */
Entry point to beautify WS message. EventType is determined automatically unless this is a combined stream event.
Entry point to beautify WS message . EventType is determined automatically unless this is a combined stream event .
beautifyWsMessage(data, eventType, isCombined) {
        if (Array.isArray(data)) {
            return data.map(event => {
                if (event.e) {
                    return this.beautify(event, event.e + 'Event');
                }
                return event;
            });
        }
        else if (data.e) {
            return this.beautify(data, data.e + 'Event');
        }
        else if (isCombined && typeof data === 'object' && data !== null) {
            return this.beautify(data, eventType);
        }
        return data;
    }
beautifyWsMessage ( data , eventType , isCombined ) { if ( Array . isArray ( data ) ) { return data . map ( event => { if ( event . e ) { return this . beautify ( event , event . e + 'Event' ) ; } return event ; } ) ; } else if ( data . e ) { return this . beautify ( data , data . e + 'Event' ) ; } else if ( isCombined && typeof data === 'object' && data !== null ) { return this . beautify ( data , eventType ) ; } return data ; }
Entry point to beautify WS message.
Entry point to beautify WS message .