hasJSONRPCStreaming returns true if the service has a JSON-RPC streaming endpoint (WebSocket or SSE).
(sd *Data)
| 397 | // hasJSONRPCStreaming returns true if the service has a JSON-RPC streaming |
| 398 | // endpoint (WebSocket or SSE). |
| 399 | func hasJSONRPCStreaming(sd *Data) bool { |
| 400 | for _, m := range sd.Methods { |
| 401 | if m.IsJSONRPC && m.ServerStream != nil { |
| 402 | return true |
| 403 | } |
| 404 | } |
| 405 | return false |
| 406 | } |
| 407 | |
| 408 | // isJSONRPCSSE returns true if the service uses SSE for JSON-RPC streaming. |
| 409 | // This requires checking the HTTP endpoints in the root expression. |
no outgoing calls
no test coverage detected