Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9393

Add ability to send a message to multiple defined connections with guaranty of delivery

    Details

    • Estimated Complexity:
      Moderate

      Description

      For that moment of time there are two ways of sending message (to all available connections and to one specific) I want to extend this by providing a list of connection keys for broadcasting a message. Addition to this I want to be notified about that one or more connections were not available and have not received the message. So I can handle this situation somehow for example store the message or re send.

      To solve this
      1) I create a new constant CONNECTION_KEY_LIST = "websocket.connectionKey.list"
      for transferring connections which should receive the message and ERROR_TYPE = "websocket.errorType"
      MESSAGE_NOT_SENT_ERROR_TYPE = 1
      to mark the callback event when some connections have not received the message.
      2) create sendNotDeliveredMessage method in WebsocketConsumer for re sending the error event.
      3) change WebsocketEndpoint to provide access to WebsocketConsumer
      4) change WebsocketProducer to handle a new case (broadcast to defined list of connections and send error event in case some connections have not received the message)

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              pkletsko Pavlo Kletsko
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified