WebSocketReceiver
从指定的WebSocket服务器接收WebSocket消息。Produces a feature each time a message is received,并将消息的内容放入指定的属性中。Each incoming feature will cause the WebSocketReceiver to initialize a connection to the specified WebSocket server.转换器将在等待接收WebSocket消息时阻塞,直到远程主机关闭连接。
Input Ports
此转换器接受任何功能。
输出端口
包含从指定的WebSocket服务器接收到的数据的功能。
Parameters
The URL of the remote WebSocket server that the WebSocketReceiver will connect to in order to receive WebSocket messages.默认值为网址:ws://localhost:7078.To initiate a secure connection to a WebSocket server using TLS,specifywss://<主机名> <港口>.
If Yes is specified,either explicitly or through a parameter,the WebSocketReceiver verifies the certificate (or chain of certificates) of the WebSocket server before establishing a connection.
如果此可选参数具有值,then the WebSocketReceiver will transmit the contents of this parameter to the remote WebSocket server before processing any incoming data.
To connect to the FME Server WebSocket server,use the following preamble:
{
"ws_op" : "open",
“ws_stream_id”:[”
}
要指定这个前导码,单击省略号(…)打开“连接前导码”对话框。Under FME Server WebSocket Preambles,select the Open Public Stream template.Then,specify aWS-流苏价值。
WS-流苏identifies one or more message streams in order for the WebSocket server to associate them with the correct requesting application.
指定将存储接收到的WebSocket消息数据的输出属性。
编辑变压器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来指定变压器参数。More advanced functions,例如高级编辑器和算术编辑器,are also available in some transformers.要访问这些选项的菜单,点击beside the applicable parameter.更多信息,see变压器参数菜单选项.
Transformer Categories
FME许可级别
FME专业版及以上
Search FME Knowledge Center
在上搜索有关此变压器的示例和信息FME Knowledge Center.