WebStreamClient
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Hold a live two-way connection to another program, and get it back by itself after a close.
HttpService:CreateWebStreamClientAsync(url, headers) returns once connected and gives one, a websocket named like the object Roblox's HttpService:CreateWebStreamClient gives, a child of HttpService. Send is queued and never waits. With AutoReconnect on, it tries again every 5 s after a close.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Url | string | ||
| ConnectionState | "Open" | "Closed" | ||
| AutoReconnect | boolean | When true it tries again every 5 s after a close; false by default. |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| Send | (text: string) | () | Sends the text, queued; never waits. |
| Close | () | () |
Events
| Name | Passes | Description |
|---|---|---|
| MessageReceived | (string) | |
| Opened | () | Fires after each reconnect. |
| Closed | (number?) | Fires with the close code when the connection closes. |
| Error | (string) |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
