Skip to main content

ListenWebSocket

Description

Acts as a WebSocket server endpoint to accept client connections. FlowFiles are transferred to downstream relationships according to received message types as the WebSocket server configured with this processor receives client requests

Tags

WebSocket, consume, listen, subscribe

Properties

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
WebSocket Server ControllerService *websocket-server-controller-serviceController Service:
WebSocketServerService

Implementations:
JettyWebSocketServer
A WebSocket SERVER Controller Service which can accept WebSocket requests.
Server URL Path *server-url-pathThe WetSocket URL Path on which this processor listens to. Must starts with '/', e.g. '/example'.

Dynamic Properties

This component does not support dynamic properties.

Relationships

NameDescription
binary messageThe WebSocket binary message output
connectedThe WebSocket session is established
text messageThe WebSocket text message output

Reads Attributes

This processor does not read attributes.

Writes Attributes

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

State Management

This component does not store state.

Restricted

This component is not restricted.

Input Requirement

This component does not allow an incoming relationship.

System Resource Considerations

This component does not specify system resource considerations.

See Also