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

Function make

packages/platform/node-shared/src/NodeSocketServer.ts:70–81  ·  view source on GitHub ↗
(
  options: Net.ServerOpts & Net.ListenOptions
)

Source from the content-addressed store, hash-verified

68 * @since 4.0.0
69 */
70export const make = (
71 options: Net.ServerOpts & Net.ListenOptions
72): Effect.Effect<
73 SocketServer.SocketServer["Service"],
74 SocketServer.SocketServerError,
75 Scope.Scope
76> =>
77 makeNetServer({
78 listenOptions: options,
79 connectionEvent: "connection",
80 createServer: () => Net.createServer(options)
81 })
82
83/**
84 * Provides a TCP `SocketServer` by creating and managing a scoped Node

Callers 5

NodeDns.tsFile · 0.70
NodeTerminal.tsFile · 0.70
stepFunction · 0.50
layerTaskFunction · 0.50
dnsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected