Skip to content

Documents for @litert/xxl-job-integration / Listener/NodeHttp / create

Function: create()

create(executor, listenOpts): Promise<Server<typeof IncomingMessage, typeof ServerResponse>>

Defined in: src/lib/Listener/NodeHttp.ts:237

Create a new HTTP server, and bind it to the given executor manager.

Parameters

executor

IExecutor

The executor to bind the server to.

listenOpts

IListenOptions

The options for creating the server listener.

Returns

Promise<Server<typeof IncomingMessage, typeof ServerResponse>>

The created HTTP server instance. Don't forget to listen on the error event of the server.