Skip to content

Welshman Docs / @welshman/net / socketPolicyCloseInactive

Function: socketPolicyCloseInactive() ​

socketPolicyCloseInactive(socket): () => void

Defined in: packages/net/src/policy.ts:123

Auto-closes inactive sockets, and re-opens sockets with pending messages

Parameters ​

socket ​

Socket

a Socket object

Returns ​

a cleanup function

(): void

Returns ​

void