WebSocket Publisher

The WebSocket publisher receives messages over TCP from a WebSocket-supported client and publishes them toFME Flowtopics. Supported clients can include the WebSocketSender transformer, as well as the following Java or HTML5 web browsers:

  • Internet Explorer 10+
  • Firefox 11+
  • Chrome 16+
  • Safari 6+
  • Opera 12.10+

WebSocket Communication Channels

TheWebSocket Serveris located on theFME Flow核心。By default,FME Flowuses the following channels for WebSocket communication:

  • Port: 7078
  • URI:ws://<hostname>:7078/websocket

To configure the WebSocket server for SSL communication, seeConfiguring for HTTPS.

Configuring the Publisher

  1. In theFME FlowWeb User Interface, selectNotifications > Publications, and clickNew.
  2. Provide a name for the Publication
  3. In the Protocol drop down menu, select WebSocket.
  4. Specify theTopicsyou want to publish to using the drop-down selector. To create a topic and use it right away, click+.

  5. Target URL: This field is pre-populated with the URL of the WebSocket server on theFME FlowCore (included with yourFME Flowinstallation). However, you can choose to connect to a different WebSocket server.
  6. Stream ID: Specify the Stream ID for the publication. The Stream ID allows the WebSocket server to identify messages and connect them to requesting applications. In this case, the requesting application is the Notification Service Publisher.
  7. Click OK.

Messaging Protocol

See Also