All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.koushikdutta.async.http.WebSocket Maven / Gradle / Ivy

Go to download

Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads.

There is a newer version: 3.1.0
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy