You are here: Reference Manual > FME Server Services > Notification Service > Subscribers > WebSocket Subscriber

WebSocket Subscriber

The WebSocket subscriber receives notifications from the FME Server Notification Service and publishes them over TCP to WebSocket-supported clients that are connected to the FME Server WebSocket server or another target URL. Supported clients include the WebSocketReceiver transformer and the following HTML5-based web browsers (among others):

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

Client Requirements

To receive data from the subscriber, clients must send the following preamble:

{

ws_op : 'open',

ws_stream_id : '<stream_id>'

}

For more information, see WebSocket Server Messaging Protocol.

WebSocket Communication Channels

The WebSocket server is located on the FME Server Core. By default, FME Server uses the following channels for WebSocket communication:

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

To configure the WebSocket server for SSL communication, see Configuring for HTTPS.

Configuring the Subscriber

  1. In the FME Server Web User Interface, select Manage > Notifications. Select the Subscriptions tab and click New.
  2. Provide a name for the Subscription
  3. In the Protocol drop down menu, select WebSocket.
  4. Specify the topics you want to subscribe to using the drop-down selector, or click Select All if you want to subscribe to all topics.
  5. Target URL: This field is pre-populated with the URL of the WebSocket server on the FME Server Core (included with your FME Server installation). However, you can choose to connect to a different WebSocket server.
  6. Stream ID: Specify a Stream ID for the subscriber. The Stream ID allows the WebSocket server to uniquely identify message streams and connect them to the right requesting applications.
  7. Click OK.

See Also