Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Commit

Permalink
add end pointed connected override to the handler
Browse files Browse the repository at this point in the history
the new endpoint connected callback is mandatory in the handler
interface, without it the README example doesn't work
  • Loading branch information
liorsion committed May 21, 2013
1 parent 5408843 commit f7487f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@ gen
.project
local.properties
/.settings
project.properties
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -44,6 +44,11 @@ WebSocketClient client = new WebSocketClient(URI.create("wss://irccloud.com"), n
public void onError(Exception error) {
Log.e(TAG, "Error!", error);
}

@Override
public void onConnectToEndpoint(String endpoint) {
Log.d(TAG, "Connected to endpoint")
}
}, extraHeaders);

client.connect();
Expand Down Expand Up @@ -90,6 +95,11 @@ SocketIOClient client = new SocketIOClient(URI.create("wss://example.com"), new
public void onError(Exception error) {
Log.e(TAG, "Error!", error);
}

@Override
public void onConnectToEndpoint(String endpoint) {
Log.d(TAG, "Connected to endpoint")
}
});

client.connect();
Expand Down

0 comments on commit f7487f2

Please sign in to comment.