Skip to content

Connectum API Reference / @connectum/core / collectStreamingMethods

Function: collectStreamingMethods() ​

collectStreamingMethods(source): StreamingMethodInfo[]

Defined in: packages/core/src/TransportValidation.ts:111

Collect bidi-streaming methods. Client-streaming is NOT collected — the Connect protocol supports it over HTTP/1.1.

Pass the mounted services (DescService) to check what a server actually serves; that is what Server.start() does. A file (DescFile) contributes every service it declares, including services that are not mounted, so a file-based check can report methods nobody can call.

Parameters ​

source ​

readonly (DescFile | DescService)[]

Returns ​

StreamingMethodInfo[]