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 ​
a Socket object
Returns ​
Unsubscriber
a cleanup function