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

Function IsWebSocketEndpoint

http/codegen/websocket.go:463–465  ·  view source on GitHub ↗

IsWebSocketEndpoint returns true if the endpoint defines a streaming payload or result.

(ed *EndpointData)

Source from the content-addressed store, hash-verified

461// IsWebSocketEndpoint returns true if the endpoint defines a streaming payload
462// or result.
463func IsWebSocketEndpoint(ed *EndpointData) bool {
464 return ed.ServerWebSocket != nil || ed.ClientWebSocket != nil
465}

Callers 2

ServerEncodeDecodeFileFunction · 0.85
serverTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected