aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index d19487a..181bf4d 100644
--- a/README.md
+++ b/README.md
@@ -133,7 +133,7 @@ AsyncHttpClient.getDefaultInstance().websocket(get, "my-protocol", new WebSocket
}
});
webSocket.setDataCallback(new DataCallback() {
- public void onDataAvailable(ByteBufferList byteBufferList) {
+ public void onDataAvailable(DataEmitter emitter, ByteBufferList byteBufferList) {
System.out.println("I got some bytes!");
// note that this data has been read
byteBufferList.recycle();