This commit is contained in:
wangcongtao
2021-01-06 19:49:41 +08:00
parent 88def61796
commit 3a83102f35
5 changed files with 12 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ package com.mogo.base.websocket;
import android.content.Context;
import android.os.SystemClock;
import android.util.Log;
import androidx.annotation.Keep;
@@ -197,7 +198,9 @@ public class WebSocketManager implements IMogoWebSocketManager, ISocketMsgSettin
if (listener != null) {
Logger.d(TAG, "received msgId = " + webSocketData.getSeq() + ", content = " + webSocketData.getData());
Object receiveObj = GsonUtil.objectFromJson(webSocketData.getData(),listener.target());
final long start = System.currentTimeMillis();
listener.onMsgReceived(receiveObj);
Logger.d("WebSocketManager-sdk-timer", "cost " + (System.currentTimeMillis() - start) + "ms");
}
}
}