Skip to content

Commit f1b62f1

Browse files
committed
modify changelog
1 parent 4f4e6b8 commit f1b62f1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## 2.1.2 (2022-06-07)
1+
## 2.1.2 (2022-06-14)
22
### Modify
33
- 升级 stomp.py 版本, 将之前的 4.1.24 升级到 8.0.1
44
### Breaking
5-
- PushClient 去除 `auto_reconnect` 参数,如需自动重连,可自定义 `disconnect_callback` 进行重连
5+
- PushClient 去除 `auto_reconnect` 参数,如需自定义重连方式,可自定义方法并绑定 `disconnect_callback` 进行重连
66
- 处理连接被踢的情况,如果有多台设备使用相同 tiger_id 连接, 新连接会将较早的连接踢掉,较早连接会抛出异常,停止接收消息
77

88
## 2.1.1 (2022-05-25)

tigeropen/examples/push_client_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ def unsubscribe_callback(destination, content):
120120
print('subscribe:{}, callback content:{}'.format(destination, content))
121121

122122

123-
def error_callback(content):
123+
def error_callback(frame):
124124
"""错误回调"""
125-
print(content)
125+
print(frame)
126126

127127

128-
def connect_callback():
128+
def connect_callback(frame):
129129
"""连接建立回调"""
130130
print('connected')
131131

0 commit comments

Comments
 (0)