Library: Web Socket Client SL
The Web Socket Client SL library provides function blocks for communication via the web socket protocol.
Components
WebSocketClient
The
WebSocketClient
function block can be used to establish a connection to a web socket server. Unencrypted (ws://
) and encrypted (wss://
) connections are supported.Messages can be sent and received by means of the
Write
andRead
methods.WebSocketRead
The
WebSocketRead
function block encapsulates theRead
method of theWebSocketClient
function block for use in graphical implementation languages (example: CFC).WebSocketWrite
The
WebSocketWrite
function block encapsulates theWrite
method of theWebSocketClient
function block for use in graphical implementation languages (example: CFC).
Supported functions
Unencrypted connections (ws)
Encrypted connect (wss, configurable TLS settings)
Configurable ping interval
Communication via HTTP proxy server
Fragmented packages
Possible extension via "WebSocket Extensions" (not included in this library)
Any subprotocols
Tip
See the example: Using the Web Socket Client SL Library.