TcpEvents
TCP events map for the net TCP socket. Key is the event name and value is the corresponding callback function.
type TcpEvents = {
error: OnErrorCallback;
connect: VoidCallback;
end: VoidCallback;
close: VoidCallback;
timeout: VoidCallback;
drain: VoidCallback;
lookup: OnLookupCallback;
};