# Enum.WebStreamClientType

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/WebStreamClientType/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/WebStreamClientType

Specifies what type of streaming to use when creating a [`WebStreamClient`](https://rapi.sleaze.dev/classes/WebStreamClient.md).

## Items

| Name | Value | Description |
| --- | --- | --- |
| `SSE` | 0 | Traditional Server-Sent Events (SSE) client. Requires `text/event-stream` to be returned in the `Content-Type` header. Messages in the stream will follow the [event stream format](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format). |
| `RawStream` | 1 | General purpose HTTP streaming client. It can connect to any server that provides streaming data transfer (e.g. [chunked encoding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Transfer-Encoding)). It provides no guarantees about the stream format. |
| `WebSocket` | 2 | [WebSocket](https://en.wikipedia.org/wiki/WebSocket) client that provides a bidirectional communication channel over a TCP connection. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [HttpService](https://rapi.sleaze.dev/classes/HttpService.md): method parameter `CreateWebStreamClient`, `CreateWebStreamClientInternal`
