method OutgoingMessage.prototype.setTimeoutOutgoingMessage.prototype.setTimeout(msecs: number,callback?: () => void,): thisDeprecatedOnce a socket is associated with the message and is connected, socket.setTimeout() will be called with msecs as the first parameter. Parametersmsecs: numberoptionalcallback: () => voidOptional function to be called when a timeout occurs. Same as binding to the timeout event. Return Typethis