MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / Connected

Method Connected

client/client.go:379–390  ·  view source on GitHub ↗

Connected indicates whether the client is connected through to at least one ARI websocket

()

Source from the content-addressed store, hash-verified

377
378// Connected indicates whether the client is connected through to at least one ARI websocket
379func (c *Client) Connected() bool {
380 if c.closed {
381 return false
382 }
383
384 // TODO: this is a surrogate indicator with low resolution... we should have
385 // something more proactive and concrete
386 if len(c.cluster.App(c.appName, proxy.AnnouncementInterval*2)) < 1 {
387 return false
388 }
389 return true
390}
391
392// Close shuts down the client
393func (c *Client) Close() {

Callers 2

pingHandlerMethod · 0.80
newRequestHandlerMethod · 0.80

Calls 1

AppMethod · 0.80

Tested by

no test coverage detected