socketConnect
Last updated
Last updated
Creates a TCP connection through a socket.
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
N/A
The function to be executed if the connection is created successfully.
The function to be executed if the connection is not created successfully.
Coming Soon.
The user wants to create a connection and view the socket input if it is successful.
Drag a button and label component to a page in the mobile designer. Call the function socketConnect
in the button component.
Call the function console
in the callbacks of the socketConnect
function. Select the parameter type input
for the value
parameter.
Call the function setComponentValue
and select the label component in the component
parameter. Set the value
parameter type to input
.
If the socket connection is successful, the host name will be shown in the label component.
type
The type of connection.
String/Text
-
-
Yes
name
The name of the connection.
String/Text
default
-
No
host
The host for the connection.
String/Text
-
-
Yes
port
The port for the connection.
String/Text
-
-
Yes
authorization
The authorization for the connection.
String/Text
-
-
Yes