<fx-connection>

Description

fx-connection allows to use WebSocket connections to share data between different browser windows - either locally or remote.

“messages” are snippets of data in text, json or xml format that are transferred via Websocket connections.

The fx-connection element allows to bind messages to data directly thereby updating local data whenever a message is received. To send a message the fx-send action is used as with fx-submission.

If no direct binding is desired the message content can also be accessed via the event() function.

Attributes

NameDescriptionDefault
heartbeatan integer value for the duration between heartbeats0
message-formatdataformat of message. can be ‘json’, ’text’ or ‘xml’‘json’
urlthe websocket url e.g. ws://localhost:8088-

Examples