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

NodeClusterShardManagerSocket.ts overview

Since v1.0.0


Exports Grouped by Category


Layers

layer

Signature

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

Source

Since v1.0.0

layerSocketServer

Signature

declare const layerSocketServer: Layer.Layer<
  SocketServer.SocketServer,
  SocketServer.SocketServerError,
  ShardingConfig.ShardingConfig
>

Source

Since v1.0.0