Skip to content

Commit 25efbc3

Browse files
authored
Update README.md
1 parent cde676d commit 25efbc3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>cn.jpush.api</groupId>
2828
<artifactId>jpush-client</artifactId>
29-
<version>3.2.16</version>
29+
<version>3.2.17</version>
3030
</dependency>
3131
```
3232
### jar 包方式
@@ -46,7 +46,7 @@
4646
<dependency>
4747
<groupId>cn.jpush.api</groupId>
4848
<artifactId>jiguang-common</artifactId>
49-
<version>1.0.2</version>
49+
<version>1.0.3</version>
5050
</dependency>
5151
<dependency>
5252
<groupId>io.netty</groupId>
@@ -115,13 +115,15 @@ try {
115115
PushResult result = jpushClient.sendPush(payload);
116116
LOG.info("Got result - " + result);
117117
Thread.sleep(5000);
118-
   // 定义一个 close 方法,最终调用 NettyHttpClient 中的 close 方法即可
118+
   // 请求结束后,调用 NettyHttpClient 中的 close 方法,否则进程不会退出
119119
   jpushClient.close();
120120
} catch(InterruptedException e) {
121121
e.printStackTrace();
122122
}
123123
```
124124

125+
3.2.17 版本后,在 PushClient 中添加了 setHttpClient(IHttpClient client) 方法,用户可以自由切换 NettyHttpClient 或是 NativeHttpClient。
126+
125127
### 推送样例
126128

127129
> 以下片断来自项目代码里的文件:example / cn.jpush.api.examples.PushExample

0 commit comments

Comments
 (0)