ru.yandex.qatools.camelot.api.ClientMessageSender Maven / Gradle / Ivy
package ru.yandex.qatools.camelot.api;
/**
* Interface allowing to send the message to the client
*
* @author Ilya Sadykov (mailto: [email protected])
*/
public interface ClientMessageSender {
/**
* Send the new event to the client via websockets
*/
default void send(Object message) {
send(null, message);
}
/**
* Send the new event to the client via websockets using topic
*/
void send(String topic, Object message);
}