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.
Symbol
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.
When the socket fails to be created, this function is called.
The promise returned by Bun.connect
rejects after this function is called.
When connectError
is specified, the rejected promise will not be added to the promise rejection queue (so it won't be reported as an unhandled promise rejection, since connectError handles it).
When connectError
is not specified, the rejected promise will be added to the promise rejection queue.