MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeTlsChannel

Function makeTlsChannel

packages/platform/node-shared/src/NodeSocket.ts:646–657  ·  view source on GitHub ↗
(
  options: Parameters<typeof makeTls>[0]
)

Source from the content-addressed store, hash-verified

644 * @since 4.0.0
645 */
646export const makeTlsChannel = <IE = never>(
647 options: Parameters<typeof makeTls>[0]
648): Channel.Channel<
649 Arr.NonEmptyReadonlyArray<Uint8Array>,
650 Socket.SocketError | IE,
651 void,
652 Arr.NonEmptyReadonlyArray<Uint8Array | string | Socket.CloseEvent>,
653 IE
654> =>
655 Channel.unwrap(
656 Effect.map(makeTls(options), Socket.toChannelWith<IE>())
657 )
658
659/**
660 * Provides a `Socket.Socket` by opening a TLS connection with the supplied

Callers

nothing calls this directly

Calls 2

makeTlsFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected