Reset the socket's callbacks. This is useful with bun --hot to facilitate hot reloading.
This will apply to all sockets from the same Listener. it is per socket only for Bun.connect.
method
Reset the socket's callbacks. This is useful with bun --hot to facilitate hot reloading.
This will apply to all sockets from the same Listener. it is per socket only for Bun.connect.
Whether to allow half-open connections.
A half-open connection occurs when one end of the connection has called close() or sent a FIN packet, while the other end remains open. When set to true:
end() to fully close the connectionWhen false, the socket automatically closes both ends of the connection when either side closes.