com.koushikdutta.async.http.WebSocket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of androidasync Show documentation
Show all versions of androidasync Show documentation
Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads.
package com.koushikdutta.async.http;
import com.koushikdutta.async.AsyncSocket;
public interface WebSocket extends AsyncSocket {
static public interface StringCallback {
public void onStringAvailable(String s);
}
public void send(byte[] bytes);
public void send(String string);
public void send(byte [] bytes, int offset, int len);
public void setStringCallback(StringCallback callback);
public StringCallback getStringCallback();
public boolean isBuffering();
public AsyncSocket getSocket();
}