NodedgramSocket.prototype.closemethod Socket.prototype.close#Socket.prototype.close(callback?: () => void): thisClose the underlying socket and stop listening for data on it. If a callback is provided, it is added as a listener for the 'close' event. Parameters #optional#callback: () => voidCalled when the socket has been closed. Return Type #this
method Socket.prototype.close#Socket.prototype.close(callback?: () => void): thisClose the underlying socket and stop listening for data on it. If a callback is provided, it is added as a listener for the 'close' event. Parameters #optional#callback: () => voidCalled when the socket has been closed. Return Type #this