add MoGoAiCloud sdk --> socket passport replace origin logic

This commit is contained in:
zhongchao
2021-02-23 11:20:39 +08:00
parent 024988b241
commit 632ececb99
45 changed files with 1285 additions and 873 deletions

View File

@@ -33,6 +33,14 @@ public interface IMogoWebSocketManager<T> extends IProvider {
* @param body 消息体
* @param listener 回执监听
*/
void sendMsg( T body, IMogoOnWebSocketMessageListener listener );
default void sendMsg( T body, IMogoOnWebSocketMessageListener listener ){
}
/**
* 停止socket服务
*/
default void stop(){
}
}

View File

@@ -36,7 +36,7 @@ public class MsgBody {
/**
* 消息内容
*/
private Object mContent;
private byte[] mContent;
public MsgBody msgType( int msgType ) {
this.mMsgType = msgType;
@@ -48,7 +48,7 @@ public class MsgBody {
return this;
}
public MsgBody content( Object object ) {
public MsgBody content( byte[] object ) {
this.mContent = object;
return this;
}
@@ -65,7 +65,7 @@ public class MsgBody {
return mMsgId;
}
public Object getContent() {
public byte[] getContent() {
return mContent;
}
}

View File

@@ -50,7 +50,6 @@ dependencies {
implementation rootProject.ext.dependencies.mogocommons
implementation rootProject.ext.dependencies.mogoserviceapi
implementation rootProject.ext.dependencies.modulecommon
implementation rootProject.ext.dependencies.modulecommon
} else {
api project(":libraries:mogo-map")
implementation project(":libraries:mogo-map-api")