File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/com/codebutler/android_websockets Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ arguments.put("first argument");
8787JSONObject second = new JSONObject ();
8888second. put(" dictionary" , true );
8989arguments. put(second)
90- client. send (" hello" , arguments);
90+ client. emit (" hello" , arguments);
9191client. disconnect();
9292```
9393
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments