HasWebSocket returns true if at least one of the endpoints in the service defines a streaming payload or result.
(sd *ServiceData)
| 455 | // HasWebSocket returns true if at least one of the endpoints in the service |
| 456 | // defines a streaming payload or result. |
| 457 | func HasWebSocket(sd *ServiceData) bool { |
| 458 | return slices.ContainsFunc(sd.Endpoints, IsWebSocketEndpoint) |
| 459 | } |
| 460 | |
| 461 | // IsWebSocketEndpoint returns true if the endpoint defines a streaming payload |
| 462 | // or result. |
no outgoing calls
no test coverage detected