Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
WebStreamClientType
Specifies what type of streaming to use when creating a WebStreamClient.
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. |
| RawStream | 1 | General purpose HTTP streaming client. It can connect to any server that provides streaming data transfer (e.g. chunked encoding). It provides no guarantees about the stream format. |
| WebSocket | 2 | WebSocket client that provides a bidirectional communication channel over a TCP connection. |
SSE
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.
| Field | Value |
|---|---|
| value | 0 |
RawStream
General purpose HTTP streaming client. It can connect to any server that provides streaming data transfer (e.g. chunked encoding). It provides no guarantees about the stream format.
| Field | Value |
|---|---|
| value | 1 |
WebSocket
WebSocket client that provides a bidirectional communication channel over a TCP connection.
| Field | Value |
|---|---|
| value | 2 |