Skip to content

Commit

Permalink
Merge pull request codebutler#15 from cpeterso/cpeterso/fix-readme-er…
Browse files Browse the repository at this point in the history
…rors

Fix syntax errors in README.md's example code
  • Loading branch information
koush committed May 9, 2013
2 parents 84119d1 + c62edc2 commit ecaf18b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ The Socket.IO client was written by [Koushik Dutta](https://twitter.com/koush).

```java
List<BasicNameValuePair> extraHeaders = Arrays.asList(
new BasicNameValuePair("Cookie", "session=abcd");
new BasicNameValuePair("Cookie", "session=abcd")
);

WebSocketClient client = new WebSocketClient(URI.create("wss://irccloud.com"), new WebSocketClient.Handler() {
WebSocketClient client = new WebSocketClient(URI.create("wss://irccloud.com"), new WebSocketClient.Listener() {
@Override
public void onConnect() {
Log.d(TAG, "Connected!");
Expand All @@ -32,7 +32,7 @@ WebSocketClient client = new WebSocketClient(URI.create("wss://irccloud.com"), n

@Override
public void onMessage(byte[] data) {
Log.d(TAG, String.format("Got binary message! %s", toHexString(data));
Log.d(TAG, String.format("Got binary message! %s", toHexString(data)));
}

@Override
Expand Down

0 comments on commit ecaf18b

Please sign in to comment.