PutWebSocket 2025.10.9.21

Bundle

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

Description

Sends messages to a WebSocket remote endpoint using a WebSocket session that is established by either ListenWebSocket or ConnectWebSocket.

Tags

WebSocket, publish, send

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
websocket-controller-service-idA NiFi Expression to retrieve the id of a WebSocket ControllerService.
websocket-endpoint-idA NiFi Expression to retrieve the endpoint id of a WebSocket ControllerService.
websocket-message-typeThe type of message content: TEXT or BINARY
websocket-session-idA NiFi Expression to retrieve the session id. If not specified, a message will be sent to all connected WebSocket peers for the WebSocket controller service endpoint.

Relationships

NameDescription
failureFlowFiles that failed to send to the destination are transferred to this relationship.
successFlowFiles that are sent successfully to the destination are transferred to this relationship.

Writes attributes

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