WebSocket
info
This class is only available on ServerScripts
The WebSockets class provides a WebSocket interface for game instances to use to implement continuous connectivity with a 3rd party service.
Instance Properties
| Property Name | Property Type | Description |
|---|---|---|
| IsOpen | bool | Returns true if the connection to the WebSocket server is alive |
Instance Methods
| Method Name | Return Type | Description |
|---|---|---|
| Create | void | Creates a WebSocket Instance associated with the WebSocket object. This is not static! |
| Open | void | Opens the WebSocket connection |
| Send | void | Sends a message to the WebSocket server |
| Close | void | Closes the WebSocket connection |