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

Method Wait

mcp/server.go:1528–1530  ·  view source on GitHub ↗

Wait waits for the connection to be closed by the client.

()

Source from the content-addressed store, hash-verified

1526
1527// Wait waits for the connection to be closed by the client.
1528func (ss *ServerSession) Wait() error {
1529 return ss.conn.Wait()
1530}
1531
1532// startKeepalive starts the keepalive mechanism for this server session.
1533func (ss *ServerSession) startKeepalive(interval time.Duration) {

Callers 15

Example_lifecycleFunction · 0.45
Example_cancellationFunction · 0.45
RunMethod · 0.45
TestEndToEndFunction · 0.45
TestServerClosingFunction · 0.45
TestNoJSONNullFunction · 0.45
TestKeepAliveFailureFunction · 0.45

Calls

no outgoing calls

Tested by 15

Example_lifecycleFunction · 0.36
Example_cancellationFunction · 0.36
TestEndToEndFunction · 0.36
TestServerClosingFunction · 0.36
TestNoJSONNullFunction · 0.36
TestKeepAliveFailureFunction · 0.36
TestStreamableTransportsFunction · 0.36