Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dank/rlapi
/ IsConnected
Method
IsConnected
psynetrpc.go:59–63 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
57
}
58
59
func
(p *PsyNetRPC) IsConnected() bool {
60
p.mu.Lock()
61
defer
p.mu.Unlock()
62
return
p.connected && p.wsConn != nil
63
}
64
65
func
(p *PsyNetRPC) Close() error {
66
p.mu.Lock()
Callers
3
sendRequestAsync
Method · 0.95
TestPsyNetRPC_IsConnected
Function · 0.80
TestPsyNetRPC_PingPongHandling
Function · 0.80
Calls
no outgoing calls
Tested by
2
TestPsyNetRPC_IsConnected
Function · 0.64
TestPsyNetRPC_PingPongHandling
Function · 0.64