Skip to content

Commit

Permalink
Rename send to emit, similar to how the node/javascript code names it.
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed May 4, 2012
1 parent 6558e4c commit 4f49431
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ arguments.put("first argument");
JSONObject second = new JSONObject();
second.put("dictionary", true);
arguments.put(second)
client.send("hello", arguments);
client.emit("hello", arguments);
client.disconnect();
```

Expand Down
2 changes: 1 addition & 1 deletion src/com/codebutler/android_websockets/SocketIOClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private static String readToEnd(InputStream input) throws IOException {
android.os.Handler mSendHandler;
Looper mSendLooper;

public void send(String name, JSONArray args) throws JSONException {
public void emit(String name, JSONArray args) throws JSONException {
final JSONObject event = new JSONObject();
event.put("name", name);
event.put("args", args);
Expand Down

0 comments on commit 4f49431

Please sign in to comment.