Skip to content

Commit 4439d4b

Browse files
committed
3.0.19 update
1 parent db24c7e commit 4439d4b

File tree

6 files changed

+25
-10
lines changed

6 files changed

+25
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
Changelog
22
=========
3+
## v3.0.19
4+
### update
5+
* connect()/disconnect() doesn't clear out connection/channel handlers anymore.
6+
Instead you should use removeAllConnectionHandlers() and removeAllChannelHandlers().
7+
* Fixed a bug in removing ios push tokens.
8+
* Now reconnect() method has been added which you can use when you want to manually trigger reconnect logic when network condition gets better.
9+
310
## v3.0.18
411
### update
512
* Added "getMessages" series of methods with timestamp and messageId filter.

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ SendBird-SDK-JavaScript
2727
# [Documentation](https://docs.sendbird.com/javascript)
2828

2929

30-
## Upgrading to v3.0.18
30+
## Upgrading to v3.0.19
3131
If you want to check the record of other version, go to [Change Log](https://github.com/smilefam/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md).
32-
* Added "getMessages" series of methods with timestamp and messageId filter.
33-
* Fixed a callback handling bug.
32+
* connect()/disconnect() doesn't clear out connection/channel handlers anymore.
33+
Instead you should use removeAllConnectionHandlers() and removeAllChannelHandlers().
34+
* Fixed a bug in removing ios push tokens.
35+
* Now reconnect() method has been added which you can use when you want to manually trigger reconnect logic when network condition gets better.
3436

3537

3638
## [Change Log](https://github.com/smilefam/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md)

SendBird.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ interface SendBird_Instance {
1313
connect(userId: string, callback?: Function): void;
1414
connect(userId: string, accessToken: string, callback?: Function): void;
1515
disconnect(callback?: Function): void;
16+
// You can reinitate auto-reconnect manually.
17+
reconnect(): boolean;
1618

1719
getConnectionState(): string;
1820
getApplicationId(): string;
@@ -28,6 +30,8 @@ interface SendBird_Instance {
2830
unregisterAPNSPushTokenForCurrentUser(apnsRegToken: string, callback?: Function): void;
2931
unregisterAPNSPushTokenAllForCurrentUser(callback: Function): void;
3032

33+
unregisterPushTokenAllForCurrentUser(callback: Function): void; // This removes both All APNS/GCM tokens
34+
3135
getPendingGCMToken(): string;
3236
getPendingAPNSToken(): string;
3337

@@ -46,12 +50,14 @@ interface SendBird_Instance {
4650

4751
addChannelHandler(id: string, handler: ChannelHandler_Instance): void;
4852
removeChannelHandler(id: string): void;
53+
removeAllChannelHandlers(): void;
4954

5055
// Connection Handler
5156
ConnectionHandler(): void;
5257

5358
addConnectionHandler(id: string, handler: ConnectionHandler): void;
5459
removeConnectionHandler(id: string): void;
60+
removeAllConnectionHandlers(): void;
5561

5662
createUserListQuery(): UserListQuery;
5763
createBlockedUserListQuery(): UserListQuery;

SendBird.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.18",
3+
"version": "3.0.19",
44
"authors": [
55
"SendBird <[email protected]>"
66
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.18",
3+
"version": "3.0.19",
44
"description": "SendBird JavaScript SDK",
55
"main": "SendBird.min.js",
66
"dependencies": {

0 commit comments

Comments
 (0)