diff --git a/classes/AlreadyInstalledError.html b/classes/AlreadyInstalledError.html index 94ba1fc..ddf3a90 100644 --- a/classes/AlreadyInstalledError.html +++ b/classes/AlreadyInstalledError.html @@ -1,12 +1,12 @@
Static
Readonly
captureValue: Symbol.for('nodejs.rejection')
See how to write a custom rejection handler
.
Static
captureValue: boolean
@@ -70,7 +70,7 @@Rest
...args: Parameters<ConfigHandlerEvents<T>[E]>Returns an array listing the events for which the emitter has registered
listeners. The values in the array are strings or Symbol
s.
import { EventEmitter } from 'node:events';
const myEE = new EventEmitter();
myEE.on('foo', () => {});
myEE.on('bar', () => {});
const sym = Symbol('symbol');
myEE.on(sym, () => {});
console.log(myEE.eventNames());
// Prints: [ 'foo', 'bar', Symbol(symbol) ]
@@ -92,7 +92,7 @@
Alias for emitter.removeListener()
.
Adds the listener
function to the end of the listeners array for the event
+
Adds the listener
function to the end of the listeners array for the event
named eventName
. No checks are made to see if the listener
has already
been added. Multiple calls passing the same combination of eventName
and
listener
will result in the listener
being added, and called, multiple times.
The callback function
Adds a one-time listener
function for the event named eventName
. The
+
Adds a one-time listener
function for the event named eventName
. The
next time eventName
is triggered, this listener is removed and then invoked.
server.once('connection', (stream) => {
console.log('Ah, we have our first user!');
});
@@ -120,7 +120,7 @@
The callback function
Adds the listener
function to the beginning of the listeners array for the
+
Adds the listener
function to the beginning of the listeners array for the
event named eventName
. No checks are made to see if the listener
has
already been added. Multiple calls passing the same combination of eventName
and listener
will result in the listener
being added, and called, multiple times.
Throw when service is not installed.
-Static
Readonly
captureValue: Symbol.for('nodejs.rejection')
See how to write a custom rejection handler
.
Static
captureValue: boolean
@@ -67,9 +67,9 @@Installing a listener using this symbol does not change the behavior once an 'error'
event is emitted. Therefore, the process will still crash if no
regular 'error'
listener is installed.
Optional
[captureRest
...args: AnyRestOptional
[captureRest
...args: AnyRestAdd a custom output handler
Function to handle cloudflared output
-Alias for emitter.on(eventName, listener)
.
Alias for emitter.on(eventName, listener)
.
Rest
...args: any[]Synchronously calls each of the listeners registered for the event named eventName
, in the order they were registered, passing the supplied arguments
to each.
Rest
...args: Parameters<TunnelEvents[E]>Returns an array listing the events for which the emitter has registered
listeners. The values in the array are strings or Symbol
s.
import { EventEmitter } from 'node:events';
const myEE = new EventEmitter();
myEE.on('foo', () => {});
myEE.on('bar', () => {});
const sym = Symbol('symbol');
myEE.on(sym, () => {});
console.log(myEE.eventNames());
// Prints: [ 'foo', 'bar', Symbol(symbol) ]
@@ -100,7 +100,7 @@
Alias for emitter.removeListener()
.
Adds the listener
function to the end of the listeners array for the event
+
Adds the listener
function to the end of the listeners array for the event
named eventName
. No checks are made to see if the listener
has already
been added. Multiple calls passing the same combination of eventName
and
listener
will result in the listener
being added, and called, multiple times.
The callback function
Adds a one-time listener
function for the event named eventName
. The
+
Adds a one-time listener
function for the event named eventName
. The
next time eventName
is triggered, this listener is removed and then invoked.
server.once('connection', (stream) => {
console.log('Ah, we have our first user!');
});
@@ -128,7 +128,7 @@
The callback function
Adds the listener
function to the beginning of the listeners array for the
+
Adds the listener
function to the beginning of the listeners array for the
event named eventName
. No checks are made to see if the listener
has
already been added. Multiple calls passing the same combination of eventName
and listener
will result in the listener
being added, and called, multiple times.
Optional
eventName: string | symbolRemove a previously added output handler
The handler to remove
-Removes the specified listener
from the listener array for the event named eventName
.
Optional
options: StaticEventEmitterOptionsStatic
quickCreate a quick tunnel without a Cloudflare account.
Optional
url: stringThe local service URL to connect to. If not provided, the hello world mode will be used.
The options to pass to cloudflared.
-Static
setStatic
setimport { setMaxListeners, EventEmitter } from 'node:events';
const target = new EventTarget();
const emitter = new EventEmitter();
setMaxListeners(5, target, emitter);
Optional
n: numberStatic
withCreate a tunnel with a Cloudflare account.
The Cloudflare Tunnel token.
The options to pass to cloudflared.
-Build the arguments for the cloudflared command.
The options to pass to cloudflared.
The arguments for the cloudflared command.
-The path to the binary to install.
The version of cloudflared to install.
The path to the binary that was installed.
- +
Throw when service is already installed.
-