Class WebSocketProducer

  • All Implemented Interfaces:
    com.consol.citrus.messaging.Producer

    public class WebSocketProducer
    extends Object
    implements com.consol.citrus.messaging.Producer
    Producer sends web socket messages to all open sessions known to the web socket handler.
    Since:
    2.3
    Author:
    Martin Maher
    • Constructor Detail

      • WebSocketProducer

        public WebSocketProducer​(String name,
                                 WebSocketEndpointConfiguration endpointConfiguration)
        Default constructor using endpoint configuration.
        Parameters:
        name -
        endpointConfiguration -
    • Method Detail

      • send

        public void send​(Message message,
                         TestContext context)
        Specified by:
        send in interface com.consol.citrus.messaging.Producer
      • getName

        public String getName()
        Specified by:
        getName in interface com.consol.citrus.messaging.Producer