Type alias StreamEndpoint<Req, Res, Closure, Meta>

StreamEndpoint<Req, Res, Closure, Meta>: Endpoint<Duplex<Req, Res>, void, Closure, Meta>

A StreamingEndpoint is a specific type of endpoint that conceptually has Request and Response types (representing the type of the data that is flowing from the client and from the server respectively), but instead of taking in a Response and asynchronously returning a Response, it takes in a Duplex and asynchronously returns a void when the communication channel is established. The client and server code is then free to write messages to and read messages from the Duplex's streams.

Type Parameters

Generated using TypeDoc