You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+64-1Lines changed: 64 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,8 +109,71 @@ public class TestSimpleProxy implements ApiProxy {
109
109
* MessageBuf.JMTransfer: this is important, this class is created by protobuf, it include header and body, header is app information, you can get the detail from this project.
110
110
#### Output Parameter:
111
111
* MessageWrapper: it is message response wrapper. It include protocol, sessionId and body. Body is response data.
112
-
113
112
body is byte type, and it also a protobuf bytes.
113
+
### Send Notify to Client
114
+
```java
115
+
privateNotifyProxy notify;
116
+
117
+
finalint timeout =10*1000;
118
+
finalintNOTIFY=3;
119
+
120
+
/**
121
+
* session
122
+
*/
123
+
finalStringVERSION="version";
124
+
finalStringDEVICE_ID="deviceId";
125
+
finalStringPLATFORM="platform";
126
+
finalStringPLATFORM_VERSION="platformVersion";
127
+
finalStringTOKEN="token";
128
+
finalStringAPP_KEY="appKey";
129
+
finalStringTIMESTAMP="timestamp";
130
+
finalStringSIGN="sign";
131
+
132
+
/**
133
+
* need session into redis, then when you notify you can get info from redis by session
0 commit comments