Thanks to visit codestin.com
Credit goes to effect-ts.github.io

Skip to main content Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

NodeSocketServer.ts overview

Since v1.0.0


Exports Grouped by Category


constructors

make

Signature

declare const make: (
  options: Net.ServerOpts & Net.ListenOptions
) => Effect.Effect<
  {
    readonly address: SocketServer.Address
    readonly run: <R, E, _>(
      handler: (socket: Socket.Socket) => Effect.Effect<_, E, R>
    ) => Effect.Effect<never, SocketServer.SocketServerError, R>
  },
  SocketServer.SocketServerError,
  Scope.Scope
>

Source

Since v1.0.0

makeWebSocket

Signature

declare const makeWebSocket: (
  options: WS.ServerOptions<typeof WS.WebSocket, typeof Http.IncomingMessage>
) => Effect.Effect<SocketServer.SocketServer["Type"], SocketServer.SocketServerError, Scope.Scope>

Source

Since v1.0.0

layers

layer

Signature

declare const layer: (
  options: Net.ServerOpts & Net.ListenOptions
) => Layer.Layer<SocketServer.SocketServer, SocketServer.SocketServerError>

Source

Since v1.0.0

layerWebSocket

Signature

declare const layerWebSocket: (
  options: WS.ServerOptions
) => Layer.Layer<SocketServer.SocketServer, SocketServer.SocketServerError>

Source

Since v1.0.0

tags

IncomingMessage (class)

Signature

declare class IncomingMessage

Source

Since v1.0.0