Express instance itself is a request handler, which could be invoked without third argument.
The local address of the server
Readonly
appThe options used to create the application
Optional
applyApplies a WebSocket instance to the target
Readonly
bindThe host address that we are to bind to
Readonly
bindThe port that we are to bind to
Optional
cloudflaredPath to cloudflared binary
Returns the number of connections to the underlying TCP server
Retrieves the maximum number of connections that the underlying TCP server will accept
Returns the WebSocket.Server instance attached to the application
Installs the cloudflared binary
Readonly
localThe local server URL
Opposite of unref(), calling ref() on a previously unrefed server will not let the program exit if it's the only server left (the default behavior). If the server is refed calling ref() again will have no effect.
Serves a static path via the Express application
Optional
options: ServeStaticOptions<ServerResponse<IncomingMessage>>Readonly
serverThe underlying HTTP/S server
Sets the maximum number of connections that the underlying TCP server will accept
Readonly
sslIf SSL is enabled
Starts the server
Stops the server
Optional
tunnelThe cloudflared tunnel connections
Starts a temporary cloudflared tunnel to cloudflare
Optional
maxRetries: numberOptional
timeout: numberStops the cloudflared tunnel
Optional
tunnelThe cloudflared tunnel url
Calling unref() on a server will allow the program to exit if this is the only active server in the event system. If the server is already unrefed calling unref() again will have no effect.
Readonly
urlThe common server URL
Creates a WebSocket route in the same kind of format as .get/.post/etc
Rest
...middlewares: WebSocketRequestHandler[]
Extends an Express.Application see https://expressjs.com/en/4x/api.html#app