Skip To Content

Push JSON to an External WebSocket

The Push JSON to an External WebSocket Output Connector can be used to push event data, adapted and formatted as generic JSON, to an external server’s WebSocket. This output connector runs as a client and must be able establish connection with an external server’s WebSocket gateway to push JSON data to.

Usage notes

  • This output connector adapts event data as generic JSON as opposed to feature JSON or GeoJSON.
  • This output connector pairs the Generic JSON Outbound Adapter with the WebSocket Outbound Transport.
  • This output connector runs as a client and establishes connection to an external server’s WebSocket.
  • The WebSocket (ws) and WebSocket Secure (wss) protocols are supported by this connector.

Parameters

ParameterDescription

Name

A descriptive name for the output connector used for reference in GeoEvent Manager.

Remote Server WebSocket URI (Client Mode)

The WebSocket URI GeoEvent Server will push data to. The default is a placeholder URI specified as ws://localhost:80/ws. Update this parameter to reflect the URI of the external server’s WebSocket.

Formatted JSON

Specifies whether the generic JSON will be formatted (prettified). Also known as PJSON. The default for this parameter is No.

  • Yes—The generic JSON will be formatted (prettified).
  • No—The generic JSON will be not be formatted.

Idle Time to Disconnect

The interval (in seconds) after which the WebSocket connection will close if there is no traffic. The default is 600 seconds, which means after 10 minutes (600 seconds) of no traffic the WebSocket connection will close.


In diesem Thema
  1. Usage notes
  2. Parameters