Specifies what type of streaming to use when creating a
WebStreamClient.- Items
- 3
- Uses
- 2
Items3
- Traditional Server-Sent Events (SSE) client. Requires
text/event-streamto be returned in theContent-Typeheader. Messages in the stream will follow the event stream format (opens in a new tab). - General purpose HTTP streaming client. It can connect to any server that provides streaming data transfer (e.g. chunked encoding (opens in a new tab)). It provides no guarantees about the stream format.
- WebSocket (opens in a new tab) client that provides a bidirectional communication channel over a TCP connection.