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

NodeClusterShardManagerHttp.ts overview

Since v1.0.0


Exports Grouped by Category


Layers

layer

Signature

declare const layer: <const Storage extends "sql" | "noop" = "noop">(options: {
  readonly protocol: "http" | "websocket"
  readonly serialization?: "msgpack" | "ndjson" | undefined
  readonly shardingConfig?: Partial<ShardingConfig.ShardingConfig["Type"]> | undefined
  readonly storage?: Storage | undefined
}) => Layer.Layer<
  ShardManager.ShardManager,
  ServeError | ConfigError | (Storage extends "sql" ? SqlError : never),
  Storage extends "sql" ? SqlClient : never
>

Source

Since v1.0.0

layerHttpServer

Signature

declare const layerHttpServer: Layer.Layer<any, ServeError, ShardingConfig.ShardingConfig>

Source

Since v1.0.0