http2session.setTimeout(msecs, callback)
-
msecs<number> -
callback<Function>
用于设置 msecs 毫秒后 Http2Session 上没有活动时调用的回调函数。给定的 callback 已注册为 'timeout' 事件的监听器。
¥Used 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.