Triangle.js Docs
    Preparing search index...

    Interface RibbonOptions

    interface RibbonOptions {
        debug: boolean;
        logging: LoggingLevel;
        spooling: boolean;
        transport: "json" | "binary";
        verbose: boolean;
    }
    Index

    Properties

    debug: boolean

    Enables debug mode, which logs any mismatches between received packets and expected packet types. May cause a performance decrease.

    false
    
    logging: LoggingLevel

    The target level of Ribbon terminal log output. none = no logs error = only errors all = all logs

    spooling: boolean

    Whether or not connect to a spool (when off, the client will connect directly to tetr.io). It is highly recommended to leave this on.

    true
    
    transport: "json" | "binary"

    The type of websocket transport to use. binary is recommended and significantly faster.

    "binary"
    
    verbose: boolean
    • use logging Enables logging
    false