terminate

Bun

Symbol

Socket.terminate

terminate(): void

Forcefully close the socket. The other end may not receive all data, and the socket will be closed immediately.

This passes SO_LINGER with l_onoff set to 1 and l_linger set to 0 and then calls close(2).