Skip to main content

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 and Read methods.

  • WebSocketRead

    The WebSocketRead function block encapsulates the Read method of the WebSocketClient function block for use in graphical implementation languages (example: CFC).

  • WebSocketWrite

    The WebSocketWrite function block encapsulates the Write method of the WebSocketClient 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