-
Notifications
You must be signed in to change notification settings - Fork 2k
ex_events
KernelDeimos edited this page Jan 15, 2025
·
2 revisions
This event is emitted when an email is being validated. The event can be used to block certain emails from being validated.
the email being validated
- Type: string
- Mutability: no-effect
-
Notes: undefined
- The email may have already been cleaned.
whether the email is allowed
- Type: boolean
- Mutability: mutable
-
Notes: undefined
- If set to false, the email will be considered invalid.
This event is emitted when a requests incoming and outgoing bytes have been measured.
extension.on('core.request.measured', data => {
const measurements = data.measurements;
// measurements = { sz_incoming: integer, sz_outgoing: integer }
const actor = data.actor; // instance of Actor
console.log('\x1B[36;1m === MEASUREMENT ===\x1B[0m\n', {
actor: data.actor.uid,
measurements: data.measurements
});
});
You are reading documentation for the open-source repository of Puter.
Getting started on localhost is as simple as git clone
npm install
npm start
.