xcon.SendText (HTTP POST with JSON string)
Description
This function can be used to send data via an established connection.
Signature
bool xcon.SendText (HTTP POST with JSON string) (string, string, number, number, string)Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
string | M | Handle that identifies the connection within the LUA script. | |
string | M | URL | |
number | M | 3 (constant) | |
number | M | 0 (constant) | |
string | M | the JSON text to be sent |
Return
Type | Description |
---|---|
bool | true when server is initialized, otherwise false. |