Skip to content

Commit

Permalink
Upadte to 3.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
sf-jin-ku committed Oct 1, 2016
1 parent e0066da commit 3ac961e
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

## v3.0.11
### update
* Fixed a Keep-Alive bug now and it should be much faster in React Native/NodeJS.
* Now calling "connect()" multiple times in a row triggers "disconnect()" internally to avoid having multiple websocket connections
* New License File

## v3.0.10
### update
* Fixed a bug that increases unread message count when a user gets its own messages
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ SendBird-SDK-JavaScript

# [Sample](https://github.com/smilefam/SendBird-JavaScript)

* [Basic Sample](https://sample.sendbird.com) using [sendbird SDK](https://github.com/smilefam/SendBird-SDK-JavaScript). [download](https://github.com/smilefam/SendBird-JavaScript/tree/master/basic-sample)
* [Basic Sample](https://sample.sendbird.com) using [Sendbird SDK](https://github.com/smilefam/SendBird-SDK-JavaScript). [download](https://github.com/smilefam/SendBird-JavaScript/tree/master/basic-sample)


# [Documentation](https://docs.sendbird.com/javascript)


## Upgrading to v3.0.10
## Upgrading to v3.0.11
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).

* Fixed a bug that increases unread message count when a user gets its own messages
* Cleared out old ws object's event handlers after disconnect to prevent a user from getting messages from another user who logged in on the same device.

* Fixed a Keep-Alive bug and it should be much faster in React Native/NodeJS.
* Now calling "connect()" multiple times in a row triggers "disconnect()" internally to avoid having multiple websocket connections
* New License File


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


## License
[Apache 2.0 license](https://github.com/smilefam/bower-SendBird/blob/master/LICENSE)
[SendBird License](https://github.com/smilefam/SendBird-SDK-JavaScript/blob/master/LICENSE.md)


10 changes: 10 additions & 0 deletions SendBird.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface SendBirdFactory {
interface SendBird_Instance {
connect(userId: string, callback?: Function): void;
connect(userId: string, accessToken: string, callback?: Function): void;
disconnect(callback?: Function): void;

getConnectionState(): string;
getApplicationId(): string;
Expand All @@ -27,6 +28,9 @@ interface SendBird_Instance {
unregisterAPNSPushTokenForCurrentUser(apnsRegToken: string, callback?: Function): void;
unregisterAPNSPushTokenAllForCurrentUser(callback: Function): void;

setDoNotDisturb(doNotDisturbOn: boolean, startHour: number, startMin: number, endHour: number, endMin: number, timezone: string, callback?: Function): void;
getDoNotDisturb(callback: Function): void;

// Block / Unblock
blockUser(userToBlock: User, callback?: Function): void;
blockUserWithUserId(userToBlock: string, callback?: Function): void;
Expand Down Expand Up @@ -290,6 +294,7 @@ interface GroupChannel extends BaseChannel {
endTyping(): void;
isTyping(): boolean;
getTypingMembers(): [number, User];
getTotalUnreadMessageCount(callback: Function): void;

isDistinct: boolean;
unreadMessageCount: number;
Expand All @@ -298,6 +303,11 @@ interface GroupChannel extends BaseChannel {
memberCount: number;

createMyGroupChannelListQuery(): GroupChannelListQuery;

setPushPreference(pushOn: boolean, callback: Function): void;
getPushPreference(callback: Function): void;

getReadStatus(): Object;
}

declare var SendBird: SendBirdFactory;
9 changes: 5 additions & 4 deletions SendBird.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sendbird",
"version": "3.0.10",
"version": "3.0.11",
"authors": [
"SendBird <[email protected]>"
],
Expand All @@ -15,7 +15,7 @@
"chat",
"js"
],
"license": "Apache 2.0",
"license": "LICENSE.md",
"ignore": [
"package.json"
]
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sendbird",
"version": "3.0.10",
"version": "3.0.11",
"description": "SendBird JavaScript SDK",
"main": "SendBird.min.js",
"dependencies": {
Expand All @@ -23,7 +23,7 @@
"js"
],
"author": "SendBird <[email protected]>",
"license": "Apache 2.0",
"license": "SEE LICENSE IN LICENSE.md",
"bugs": {
"url": "https://github.com/smilefam/SendBird-SDK-JavaScript/issues"
},
Expand Down

0 comments on commit 3ac961e

Please sign in to comment.