Mclose
Bun

method

Socket.close

close(): void;

Closes the socket.

This is a wrapper around end() and shutdown().