Document metadata
Application name |
CSK_Module_MultiWebSocketClient |
---|---|
Version |
1.0.0 |
Date |
2025-05-28 |
Author |
SICK AG |
Crowns
- C
- M
CSK_Module_MultiWebSocketClient
Short description
This is an automatically generated CROWN (description not necessary).
Overview
CSK_MultiWebSocketClient
Short description
Module to provide WebSocket functionality. Multiple instances can be created and will run in multiple threads on the device.
This module provides a UI for all relevant features.
Typically the features of this module are used like this (check also main script of this module):
1) Setup
- If multiple instances are needed, these can be added via 'addInstance()' (not needed if you only use 1 single instace).
- Set instance to configure via 'setSelectedInstance'
- Set URL of WebSocket via 'setURL'.
- Via 'setConnectionStatus' it is possible to activate the WebSocket connection.
2) Interaction
Other modules can register on these events / trigger these functions:
- 'addEventToForward' (see docu)
- 'OnNewDataNUM (see docu)
- 'transmitDataNUM' (see docu)
Overview
Functions
addEventToForward()
Short description
Add an event to register to and to forward the content of its first parameter (as string) via WebSocket.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
event |
STRING |
1 |
Name of event to register to. |
Sample (auto-generated)
CSK_MultiWebSocketClient.addEventToForward(event)
addEventToForwardViaUI()
Short description
Add event to register to and forward content (first event parameter as string) on WebSocket via UI (event needs to be prefilled on UI / via "setEventToForward").
Sample (auto-generated)
CSK_MultiWebSocketClient.addEventToForwardViaUI()
addInstance()
Short description
Function to add an additional instance.
Sample (auto-generated)
CSK_MultiWebSocketClient.addInstance()
clearFlowConfigRelevantConfiguration()
Short description
Function to clear FlowConfig relevant configurations.
Sample (auto-generated)
CSK_MultiWebSocketClient.clearFlowConfigRelevantConfiguration()
deleteEventToForward()
Short description
Remove event to forward content.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
event |
STRING |
1 |
Eventname |
Sample (auto-generated)
CSK_MultiWebSocketClient.deleteEventToForward(event)
deleteEventToForwardViaUI()
Short description
Remove event preselected via UI.
Sample (auto-generated)
CSK_MultiWebSocketClient.deleteEventToForwardViaUI()
getInstancesAmount()
Short description
Get the amount of created instances of this module.
Return values
Name | Type | Multiplicity | Description |
---|---|---|---|
amount |
INT |
1 |
Amount of created instances. |
Sample (auto-generated)
amount = CSK_MultiWebSocketClient.getInstancesAmount()
getParameters()
Short description
Function to get all parameters of the client in JSON format.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
instanceNo |
INT |
1 |
Number of instance to get parameters from. |
Return values
Name | Type | Multiplicity | Description |
---|---|---|---|
jsonParameters |
STRING |
1 |
JSON string with all parameters. |
Sample (auto-generated)
jsonParameters = CSK_MultiWebSocketClient.getParameters(instanceNo)
getStatusModuleActive()
Short description
Function to get status if module is active.
Return values
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
status = CSK_MultiWebSocketClient.getStatusModuleActive()
loadParameters()
Short description
Load parameters for this module from the CSK_PersistentData module if possible and use them.
Return values
Name | Type | Multiplicity | Description |
---|---|---|---|
success |
BOOL |
1 |
Success to load parameters. |
Sample (auto-generated)
success = CSK_MultiWebSocketClient.loadParameters()
pageCalled()
Short description
Function to register "OnResume" of the module UI (only as helper function).
Return values
Name | Type | Multiplicity | Description |
---|---|---|---|
empty |
STRING |
1 |
Empty string (only needed to simplify binding). |
Sample (auto-generated)
empty = CSK_MultiWebSocketClient.pageCalled()
resetInstances()
Short description
Function to reset instances to one single instance.
IMPORTANT: As instances start their own threads, the module needs to be restarted if new instances are needed… (see AppEngine docu for "Script.startScript").
Sample (auto-generated)
CSK_MultiWebSocketClient.resetInstances()
resetModule()
Short description
Function to reset main configuration of module.
Sample (auto-generated)
CSK_MultiWebSocketClient.resetModule()
selectEventToForwardViaUI()
Short description
Select an event to forward the content of its first parameter via WebSocket client via UI.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
selection |
STRING |
1 |
Selected event. |
Sample (auto-generated)
CSK_MultiWebSocketClient.selectEventToForwardViaUI(selection)
sendParameters()
Short description
Send parameters to CSK_PersistentData module if possible to save them.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
noDataSave |
BOOL |
? |
[Optional] Set to TRUE if the data should NOT be saved immediately after sending. |
Sample (auto-generated)
CSK_MultiWebSocketClient.sendParameters(noDataSave)
setConnectionStatus()
Short description
Function to set connection status of WebSocket.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
CSK_MultiWebSocketClient.setConnectionStatus(status)
setConnectionTimeout()
Short description
Function to set timeout to wait until the client gets connected.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
timeout |
INT |
1 |
Timeout in ms. |
Sample (auto-generated)
CSK_MultiWebSocketClient.setConnectionTimeout(timeout)
setDataToTransmit()
Short description
Function to preset data to transmit.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
data |
STRING |
1 |
Data |
Sample (auto-generated)
CSK_MultiWebSocketClient.setDataToTransmit(data)
setEventToForward()
Short description
Preset event to register to and forward content to WebSocket via UI.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
value |
STRING |
1 |
Event to register to. |
Sample (auto-generated)
CSK_MultiWebSocketClient.setEventToForward(value)
setFlowConfigPriority()
Short description
Function to configure if FlowConfig should have priority for FlowConfig relevant configuration.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
CSK_MultiWebSocketClient.setFlowConfigPriority(status)
setLoadOnReboot()
Short description
Configure if this module should load its saved parameters at app/ device boot up.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Set status |
Sample (auto-generated)
CSK_MultiWebSocketClient.setLoadOnReboot(status)
setMessageFormat()
Short description
Function to set format of data to transmit.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
format |
1 |
Message format. |
Sample (auto-generated)
CSK_MultiWebSocketClient.setMessageFormat(format)
setParameterName()
Short description
Function to set the name of the parameters if saved/loaded via the CSK_PersistentData module.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
name |
STRING |
1 |
Name of the parameter |
Sample (auto-generated)
CSK_MultiWebSocketClient.setParameterName(name)
setSelectedInstance()
Short description
Select one of the multiple instances.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
instance |
INT |
1 |
Instance to select. |
Sample (auto-generated)
CSK_MultiWebSocketClient.setSelectedInstance(instance)
setServerURL()
Short description
Function to set WebSocket server URL.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
url |
STRING |
1 |
URL (e.g. ws://192.168.136.100:8888/ws) |
Sample (auto-generated)
CSK_MultiWebSocketClient.setServerURL(url)
setShowLog()
Short description
Function to set if communication log should be shown on UI.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
CSK_MultiWebSocketClient.setShowLog(status)
stopFlowConfigRelevantProvider()
Short description
Function to stop FlowConfig relevant providers.
Sample (auto-generated)
CSK_MultiWebSocketClient.stopFlowConfigRelevantProvider()
transmitDataNUM()
Short description
Example of dynamically served function to transmit data via WebSocket on specific instance.
NUM will be replaced by the number of instance (e.g. "transmitData1").
INFO: Other modules can check via "Script.isServedAsFunction" if function of sepecific instance exists.
Needs then to be called via "Script.callFunction".
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
data |
BINARY |
1 |
Data to transmit. |
Return values
Name | Type | Multiplicity | Description |
---|---|---|---|
success |
BOOL |
1 |
Success of transmission. |
Sample (auto-generated)
success = CSK_MultiWebSocketClient.transmitDataNUM(data)
transmitDataViaUI()
Short description
Function to transmit preset data.
Sample (auto-generated)
CSK_MultiWebSocketClient.transmitDataViaUI()
Events
OnDataLoadedOnReboot
Short description
Event to call if module tried to load parameters and should be ready.
Sample (auto-generated)
function handleOnDataLoadedOnReboot()
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnDataLoadedOnReboot", "handleOnDataLoadedOnReboot")
OnNewDataNUM
Short description
Example of dynamically created event to provide received data of Websocket client.
NUM will be replaced by the number of instance (e.g. "OnNewData1").
INFO: Other modules can check via "Script.isServedAsEvent" if event of sepecific instance exists.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
data |
BINARY |
1 |
Data |
format |
ENUM |
1 |
Message format. |
Sample (auto-generated)
function handleOnNewDataNUM(data, format)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewDataNUM", "handleOnNewDataNUM")
OnNewEventToForward
Short description
Notify event to register to and to forward its content to UDP socket.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
eventName |
STRING |
1 |
Name of event |
Sample (auto-generated)
function handleOnNewEventToForward(eventName)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewEventToForward", "handleOnNewEventToForward")
OnNewEventToForwardList
Short description
Notify list of events to register to and to forward its content to UDP socket.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
list |
STRING |
1 |
List |
Sample (auto-generated)
function handleOnNewEventToForwardList(list)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewEventToForwardList", "handleOnNewEventToForwardList")
OnNewInstanceList
Short description
Event to provide list of created instances.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
list |
STRING |
1 |
List of created instances. |
Sample (auto-generated)
function handleOnNewInstanceList(list)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewInstanceList", "handleOnNewInstanceList")
OnNewLog
Short description
Notfiy latest log.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
log |
STRING |
1 |
Log entries. |
Sample (auto-generated)
function handleOnNewLog(log)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewLog", "handleOnNewLog")
OnNewParameterName
Short description
Notify name of persistent data parameter.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
name |
STRING |
1 |
Parameter name |
Sample (auto-generated)
function handleOnNewParameterName(name)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewParameterName", "handleOnNewParameterName")
OnNewProcessingParameter
Short description
Event to share processing parameters to the instances.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
objectNo |
INT |
1 |
Number of the instance to receive the parameter. |
parameter |
STRING |
1 |
Name of the parameter. |
value |
AUTO |
? |
Value of the parameter. |
Sample (auto-generated)
function handleOnNewProcessingParameter(objectNo, parameter, value)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewProcessingParameter", "handleOnNewProcessingParameter")
OnNewSelectedInstance
Short description
Notify if new instance is selected.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
selectedObject |
INT |
1 |
Selected instance. |
Sample (auto-generated)
function handleOnNewSelectedInstance(selectedObject)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewSelectedInstance", "handleOnNewSelectedInstance")
OnNewStatusConnectionStatus
Short description
Notify if client should be connected.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnNewStatusConnectionStatus(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusConnectionStatus", "handleOnNewStatusConnectionStatus")
OnNewStatusConnectionTimeout
Short description
Notify timeout to wait until the client gets connected.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
timeout |
INT |
1 |
Timeout in ms. |
Sample (auto-generated)
function handleOnNewStatusConnectionTimeout(timeout)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusConnectionTimeout", "handleOnNewStatusConnectionTimeout")
OnNewStatusCSKStyle
Short description
Notify UI style to use for CSK modules.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
theme |
STRING |
1 |
UI style |
Sample (auto-generated)
function handleOnNewStatusCSKStyle(theme)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusCSKStyle", "handleOnNewStatusCSKStyle")
OnNewStatusCurrentlyConnected
Short description
Notify if client is currently connected.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnNewStatusCurrentlyConnected(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusCurrentlyConnected", "handleOnNewStatusCurrentlyConnected")
OnNewStatusFlowConfigPriority
Short description
Notify if FlowConfig should have priority for FlowConfig relevant configurations.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnNewStatusFlowConfigPriority(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusFlowConfigPriority", "handleOnNewStatusFlowConfigPriority")
OnNewStatusLoadParameterOnReboot
Short description
Notify status if parameters should be loaded on app/device boot up.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnNewStatusLoadParameterOnReboot(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusLoadParameterOnReboot", "handleOnNewStatusLoadParameterOnReboot")
OnNewStatusMessageFormat
Short description
Notify format of message to transmit.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
format |
STRING |
1 |
Message format. |
Sample (auto-generated)
function handleOnNewStatusMessageFormat(format)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusMessageFormat", "handleOnNewStatusMessageFormat")
OnNewStatusModuleIsActive
Short description
Notify if module can be used on device.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnNewStatusModuleIsActive(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusModuleIsActive", "handleOnNewStatusModuleIsActive")
OnNewStatusModuleVersion
Short description
Notify version of module.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
version |
STRING |
1 |
Version |
Sample (auto-generated)
function handleOnNewStatusModuleVersion(version)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusModuleVersion", "handleOnNewStatusModuleVersion")
OnNewStatusShowLog
Short description
Notify status to show WebSocket communication log in UI.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnNewStatusShowLog(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusShowLog", "handleOnNewStatusShowLog")
OnNewStatusTempDataToTransmit
Short description
Notify data to transmit.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
data |
STRING |
1 |
Data |
Sample (auto-generated)
function handleOnNewStatusTempDataToTransmit(data)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusTempDataToTransmit", "handleOnNewStatusTempDataToTransmit")
OnNewStatusURL
Short description
Notify URL to connect WebSocket client.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
url |
STRING |
1 |
URL |
Sample (auto-generated)
function handleOnNewStatusURL(url)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewStatusURL", "handleOnNewStatusURL")
OnNewValueToForwardNUM
Short description
Example of dynamically created event to forward data from instance thread to Controller part of module, e.g. to forward values to UI.
NUM will be replaced by the number of instance (e.g. "OnNewValueToForward1").
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
eventname |
STRING |
1 |
Eventname to use to forward value. |
value |
AUTO |
1 |
Value to forward. |
Sample (auto-generated)
function handleOnNewValueToForwardNUM(eventname, value)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewValueToForwardNUM", "handleOnNewValueToForwardNUM")
OnNewValueUpdateNUM
Short description
Example of dynamically created event to sync paramters between instance threads and Controller part of module.
NUM will be replaced by the number of instance (e.g. "OnNewValueUpdate1").
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
instance |
INT |
1 |
Instance new value is coming from. |
parameter |
STRING |
1 |
Name of the paramter to update/sync. |
value |
AUTO |
1 |
Value to update. |
selectedObject |
INT |
? |
Optionally if internal parameter should be used for internal objects. |
Sample (auto-generated)
function handleOnNewValueUpdateNUM(instance, parameter, value, selectedObject)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnNewValueUpdateNUM", "handleOnNewValueUpdateNUM")
OnPersistentDataModuleAvailable
Short description
Notify status if features of CSK_PersistentData module are available.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnPersistentDataModuleAvailable(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnPersistentDataModuleAvailable", "handleOnPersistentDataModuleAvailable")
OnUserLevelAdminActive
Short description
Status of Admin userlevel. Used internally in combination with the CSK_UserManagement module if available.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnUserLevelAdminActive(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnUserLevelAdminActive", "handleOnUserLevelAdminActive")
OnUserLevelMaintenanceActive
Short description
Status of Maintenance userlevel. Used internally in combination with the CSK_UserManagement module if available.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnUserLevelMaintenanceActive(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnUserLevelMaintenanceActive", "handleOnUserLevelMaintenanceActive")
OnUserLevelOperatorActive
Short description
Status of Operator userlevel. Used internally in combination with the CSK_UserManagement module if available.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnUserLevelOperatorActive(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnUserLevelOperatorActive", "handleOnUserLevelOperatorActive")
OnUserLevelServiceActive
Short description
Status of Service userlevel. Used internally in combination with the CSK_UserManagement module if available.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
status |
BOOL |
1 |
Status |
Sample (auto-generated)
function handleOnUserLevelServiceActive(status)
-- Do something
end
Script.register("CSK_MultiWebSocketClient.OnUserLevelServiceActive", "handleOnUserLevelServiceActive")
MultiWebSocketClient_FC
Short description
Crown to provide CSK_FlowConfig relevant features.
Overview
MultiWebSocketClient_FC.OnReceive
Short description
Provide received webscket data.
Overview
Functions
create()
Short description
Internally used CSK_FlowConfig create function.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
Instance |
INT |
1 |
Numeric identifier of processing instance. |
Return values
Name | Type | Multiplicity | Description |
---|---|---|---|
handle |
HANDLE |
1 |
Handle to internally used FlowConfig instance. |
Sample (auto-generated)
handle = MultiWebSocketClient_FC.OnReceive.create(Instance)
register()
Short description
Internally used CSK_FlowConfig register function.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
handle |
HANDLE |
1 |
Handle to internally used FlowConfig instance. |
eventname |
STRING |
1 |
Internal parameter (not used). |
callback |
STRING |
1 |
Internally used callback function. |
Return values
Name | Type | Multiplicity | Description |
---|---|---|---|
success |
BOOL |
1 |
Success of register process. |
Sample (auto-generated)
success = MultiWebSocketClient_FC.OnReceive.register(handle, eventname, callback)
Events
OnNewData
Short description
Provide received WebSocket data.
Callback arguments
Name | Type | Multiplicity | Description |
---|---|---|---|
handle |
BINARY |
1 |
Handle to internally used FlowConfig instance. |
OnNewData |
STRING |
1 |
'CSK_MultiWebSocketClient.OnNewData[InstanceNUM]' Parameter: 1: Data content (BINARY) |
Sample (auto-generated)
function handleOnNewData(handle, OnNewData)
-- Do something
end
Script.register("MultiWebSocketClient_FC.OnReceive.OnNewData", "handleOnNewData")
MultiWebSocketClient_FC.Transmit
Short description
Set source of incoming data to forward via WebSocket.
Overview
Functions
create()
Short description
Internally used CSK_FlowConfig create function.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
Instance |
INT |
1 |
Numeric identifier of processing instance. |
Return values
Name | Type | Multiplicity | Description |
---|---|---|---|
handle |
HANDLE |
1 |
Handle to internally used FlowConfig instance. |
Sample (auto-generated)
handle = MultiWebSocketClient_FC.Transmit.create(Instance)
transmit()
Short description
Set source of incoming data to forward via WebSocket.
Parameters
Name | Type | Multiplicity | Description |
---|---|---|---|
handle |
BINARY |
1 |
Handle to internally used FlowConfig instance. |
source1 |
STRING |
? |
Source1 of data to forward via WebSocket. Parameter: 1: Data content (BINARY) |
source2 |
STRING |
? |
Source2 of data to forward via WebSocket. Parameter: 1: Data content (BINARY) |
source3 |
STRING |
? |
Source3 of data to forward via WebSocket. Parameter: 1: Data content (BINARY) |
source4 |
STRING |
? |
Source4 of data to forward via WebSocket. Parameter: 1: Data content (BINARY) |
Sample (auto-generated)
MultiWebSocketClient_FC.Transmit.transmit(handle, source1, source2, source3, source4)
Enumerations
CSK_MultiWebSocketClient.MessageFormat
Format of the WebSocket message.
Value | Name | Description |
---|---|---|
TEXT |
TEXT |
Text message. |
BINARY |
BINARY |
Binary message. |