method Http2Session.setTimeoutHttp2Session.setTimeout(msecs: number,callback?: () => void,): voidDeprecatedUsed to set a callback function that is called when there is no activity on the Http2Session after msecs milliseconds. The given callback is registered as a listener on the 'timeout' event. Parametersmsecs: numberoptionalcallback: () => voidReturn Typevoid