package titan.client;

import titan.client.callbacks.Callback;

/**
 * Titan client interface: https://github.com/titan-x/titan
 */
public interface Client {
    void connect(); // todo: add callbacks for success/fail (or use events like okwebsockets?)

    void jwtAuth(String token, Callback success, Callback fail);

    // todo: will the callback throw exception when the service stops?
    void sendMessage(String to, String msg, Callback sentToServer, Callback delivered);

    void close();
}

@@ -317,79 +317,8 @@
 );%0A%0A
-    // todo: will the callback throw exception when the service stops?%0A
     

remove legacy todo