MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / startKeepalive

Method startKeepalive

mcp/client.go:407–409  ·  view source on GitHub ↗

startKeepalive starts the keepalive mechanism for this client session.

(interval time.Duration)

Source from the content-addressed store, hash-verified

405
406// startKeepalive starts the keepalive mechanism for this client session.
407func (cs *ClientSession) startKeepalive(interval time.Duration) {
408 startKeepalive(cs, interval, &cs.keepaliveCancel, cs.client.opts.Logger)
409}
410
411// AddRoots adds the given roots to the client,
412// replacing any with the same URIs,

Callers 1

ConnectMethod · 0.45

Calls 1

startKeepaliveFunction · 0.85

Tested by

no test coverage detected