Skip to content

Commit 4f49431

Browse files
committed
Rename send to emit, similar to how the node/javascript code names it.
1 parent 6558e4c commit 4f49431

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ arguments.put("first argument");
8787
JSONObject second = new JSONObject();
8888
second.put("dictionary", true);
8989
arguments.put(second)
90-
client.send("hello", arguments);
90+
client.emit("hello", arguments);
9191
client.disconnect();
9292
```
9393

src/com/codebutler/android_websockets/SocketIOClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private static String readToEnd(InputStream input) throws IOException {
7272
android.os.Handler mSendHandler;
7373
Looper mSendLooper;
7474

75-
public void send(String name, JSONArray args) throws JSONException {
75+
public void emit(String name, JSONArray args) throws JSONException {
7676
final JSONObject event = new JSONObject();
7777
event.put("name", name);
7878
event.put("args", args);

0 commit comments

Comments
 (0)