com.savl.ripple.client.transport.WebSocketTransport Maven / Gradle / Ivy
package com.savl.ripple.client.transport;
import org.json.JSONObject;
import java.net.URI;
public interface WebSocketTransport {
public abstract void setHandler(TransportEventHandler events);
public abstract void sendMessage(JSONObject msg);
public abstract void connect(URI url);
/**
* It's the responsibility of implementations to trigger
* {@link com.ripple.client.transport.TransportEventHandler#onDisconnected}
*/
public abstract void disconnect();
}