Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3318

Send message from PutWebSocket to all connected clients

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • Extensions
    • None

    Description

      Currently, PutWebSocket processor needs an incoming flow file having a WebSocket session id attribute to tell the NiFi WebSocket server which connected client to send a message to.

      A flow explained in this Gist to pull messages from Kafka then send it back to multiple connected clients works, but it keeps flow files floating around in the loop, and basically too difficult to setup. Also, it imposes unnecessary latency because it needs to poll a cache to see if there's new message.

      The list of connected session ids are kept in WebSocket server controller service, so it's possible to loop through those sessions in controller service without passing a specific session id from PutWebSocket processor.
      PutWebSocket processor can be improved so that it can send messages to every connected client.

      Attachments

        Issue Links

          Activity

            People

              jeremy.dyer Jeremy Dyer
              ijokarumawak Koji Kawamura
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: