mcp-go icon indicating copy to clipboard operation
mcp-go copied to clipboard

How to send `ping` requests to all clients to keep the connection alive.

Open kingster opened this issue 8 months ago • 0 comments

Hi

I am trying to implement a SSE MCP server. Now this is behind a load-balancer, so in order to keep the connection alive, ping - pong is required otherwise the load-balancer would terminate the connection.

As per the specs, either participant can send a ping request.

I couldn't find a way. sendNotificationToAllClients is right now private, so should the right way be to expose sending ping command from server side?

kingster avatar Mar 27 '25 05:03 kingster