Skip to main content Link Search Menu Expand Document (external link)

NodeServer overview

Simplified way to run a node server.

Added in v1.0.0


Table of contents


combinators

listen

Signature

export declare const listen: (
  options?: Partial<Options>
) => <R, E>(
  router: HttpApp.Default<E, R>
) => Effect.Effect<
  never,
  HttpServerError.ServeError,
  Exclude<
    Exclude<
      Exclude<R, HttpServerRequest.HttpServerRequest | Scope.Scope>,
      HttpServer.HttpServer | HttpPlatform.HttpPlatform | Etag.Generator | NodeContext.NodeContext
    >,
    SwaggerRouter.SwaggerFiles
  >
>

Added in v1.0.0

models

Options (interface)

Signature

export interface Options {
  port: number | undefined
}

Added in v1.0.0