func (c *Connection) updateLastActivity(frame *Frame) {
	// Pings are ignored for last activity.
	switch frame.Header.messageType {
	case messageTypeCallReq, messageTypeCallReqContinue, messageTypeCallRes, messageTypeCallResContinue, messageTypeError:
		c.lastActivity.Store(c.timeNow().UnixNano())
	}
}
func (c *Connection) updateLastActivity(frame *Frame) {
	// Pings are ignored for last activity.
	switch frame.Header.messageType {
	case messageTypeCallReq, messageTypeCallReqContinue, messageTypeCallRes, messageTypeCallResContinue, messageTypeError:
		c.lastActivity.Store(c.timeNow().UnixNano())
	}
}
// updateLastActivity marks when the last message was received/sent on the channel.
// This is used for monitoring idle connections and timing them out.