0.1.17 #18
@@ -15,7 +15,7 @@ const importNodeHTTP = Effect.tryPromise({
|
|||||||
const serverListeningMessage = Match.type<AddressInfo | string | null>().pipe(
|
const serverListeningMessage = Match.type<AddressInfo | string | null>().pipe(
|
||||||
Match.when(Match.null, () => "HTTP server listening"),
|
Match.when(Match.null, () => "HTTP server listening"),
|
||||||
Match.when(Match.string, v => `HTTP server listening on ${ v }`),
|
Match.when(Match.string, v => `HTTP server listening on ${ v }`),
|
||||||
Match.orElse(v => `HTTP server listening on ${ v.address }:${ v.port }`),
|
Match.orElse(v => `HTTP server listening on ${ v.address === "::" ? "*" : v.address }:${ v.port }`),
|
||||||
)
|
)
|
||||||
|
|
||||||
export const ExpressNodeHTTPServerLive = (
|
export const ExpressNodeHTTPServerLive = (
|
||||||
|
|||||||
Reference in New Issue
Block a user