MCPcopy Create free account
hub / github.com/goadesign/goa / HasWebSocket

Function HasWebSocket

http/codegen/websocket.go:457–459  ·  view source on GitHub ↗

HasWebSocket returns true if at least one of the endpoints in the service defines a streaming payload or result.

(sd *ServiceData)

Source from the content-addressed store, hash-verified

455// HasWebSocket returns true if at least one of the endpoints in the service
456// defines a streaming payload or result.
457func 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.

Callers 3

ClientCLIFilesFunction · 0.85
websocketServerFileFunction · 0.85
WebsocketClientFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected