This commit is contained in:
zhongchao
2021-01-29 17:41:46 +08:00
parent 10dc2cd500
commit b958d839ba
3 changed files with 7 additions and 4 deletions

View File

@@ -59,6 +59,9 @@ public class SocketHandler {
*/
public void initSocket(Context context, String appId) {
SocketManager.getInstance().init(context, appId);
int msgType = 0x040003;
Log.i(TAG,"msgType : " + msgType);
Log.i(TAG,"msgType integer : " + (Integer)msgType);
SocketManager.getInstance().registerOnMessageListener(0x040002, onMessageListener);
SocketManager.getInstance().registerOnMessageListener(0x040003, onMessageListener);
}