private function stdout($type, $message)
        {
            if (!defined('STDOUT') || !$this->debug) {
                return false;
            }

            $typeMap = array(
                'debug'   => array(36, '- debug -'),
                'info'    => array(37, '- info  -'),
                'error'   => array(31, '- error -'),
                'ok'      => array(32, '- ok    -'),
            );

            if (!Arrays::exists($type, $typeMap)) {
                throw new Exception('Socketio::stdout $type parameter must be debug, info, error or success. Got '.$type);
            }

            fwrite(STDOUT, "\033[".$typeMap[$type][0]."m".$typeMap[$type][1]."\033[37m  ".$message."\r\n");
        }