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

Agnostic overview

Connection agents in a platform agnostic way.

Added in v1.0.0


Table of contents


Agnostic

makeAgnosticHttpClientLayer

Given the moby connection options, it will construct a layer that provides a http client that you could use to connect to your moby instance and requires an http client to transform from.

Signature

export declare const makeAgnosticHttpClientLayer: (
  connectionOptions: MobyConnectionOptions
) => Layer.Layer<HttpClient.HttpClient, never, HttpClient.HttpClient>

Added in v1.0.0

makeAgnosticLayer

Signature

export declare const makeAgnosticLayer: (
  connectionOptions: MobyConnectionOptions
) => Layer.Layer<Socket.WebSocketConstructor | HttpClient.HttpClient, never, HttpClient.HttpClient>

Added in v1.0.0

makeAgnosticWebsocketLayer

Given the moby connection options, it will construct a layer that provides a websocket constructor that you could use to connect to your moby instance.

Signature

export declare const makeAgnosticWebsocketLayer: (
  connectionOptions: MobyConnectionOptions
) => Layer.Layer<Socket.WebSocketConstructor, never, never>

Added in v1.0.0