Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DNAProject/DNA
/ UpdateActiveTime
Method
UpdateActiveTime
http/websocket/session/session.go:78–82 ·
view source on GitHub ↗
update active time
()
Source
from the content-addressed store, hash-verified
76
77
//update active time
78
func
(self *Session) UpdateActiveTime() {
79
self.Lock()
80
defer
self.Unlock()
81
self.nLastActive = time.Now().Unix()
82
}
83
84
//send to client
85
func
(self *Session) Send(data []byte) error {
Callers
1
webSocketHandler
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected