ConnectWebSocket 2025.10.9.21

Bundle

org.apache.nifi | nifi-websocket-processors-nar

Description

Acts as a WebSocket client endpoint to interact with a remote WebSocket server. FlowFiles are transferred to downstream relationships according to received message types as WebSocket client configured with this processor receives messages from remote WebSocket server. If a new flowfile is passed to the processor, the previous sessions will be closed and any data being sent will be aborted.

Tags

WebSocket, consume, listen, subscribe

Input Requirement

ALLOWED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
websocket-client-controller-serviceA WebSocket CLIENT Controller Service which can connect to a WebSocket server.
websocket-client-idThe client ID to identify WebSocket session. It should be unique within the WebSocket Client Controller Service. Otherwise, it throws WebSocketConfigurationException when it gets started.

Relationships

NameDescription
binary messageThe WebSocket binary message output
connectedThe WebSocket session is established
disconnectedThe WebSocket session is disconnected
failureFlowFile holding connection configuration attributes (like URL or HTTP headers) in case of connection failure
successFlowFile holding connection configuration attributes (like URL or HTTP headers) in case of successful connection
text messageThe WebSocket text message output

Writes attributes

NameDescription
websocket.controller.service.idWebSocket Controller Service id.
websocket.session.idEstablished WebSocket session id.
websocket.endpoint.idWebSocket endpoint id.
websocket.local.addressWebSocket client address.
websocket.remote.addressWebSocket server address.
websocket.message.typeTEXT or BINARY.