Skip to content

Welshman Docs / @welshman/net / SocketPolicy

Type Alias: SocketPolicy() ​

SocketPolicy = (socket) => Unsubscriber

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

The contract for socket policies

Parameters ​

socket ​

Socket

a Socket object

Returns ​

Unsubscriber

a cleanup function