|
1 |
| -[](https://www.npmjs.com/package/sendbird) |
2 |
| - |
3 |
| -SendBird JavaScript SDK |
4 |
| -=========== |
5 |
| - |
6 |
| -[SendBird](https://sendbird.com) provides the chat API and SDK for your app enabling real-time communication among your users. |
| 1 | +[](https://www.npmjs.com/package/sendbird) |
7 | 2 |
|
| 3 | +# SendBird JavaScript SDK |
8 | 4 |
|
9 |
| -# Getting Started |
| 5 | +[SendBird](https://sendbird.com) provides the chat API and SDK for your app enabling real-time communication among your users. |
10 | 6 |
|
11 |
| -[Bower](http://bower.io) package for [SendBird.com](https://sendbird.com) JavaScript SDK |
| 7 | +# Getting Started |
12 | 8 |
|
13 |
| - bower install sendbird |
| 9 | +[Bower](http://bower.io) package for [SendBird.com](https://sendbird.com) JavaScript SDK |
14 | 10 |
|
| 11 | + bower install sendbird |
15 | 12 |
|
16 |
| -[npm](https://www.npmjs.com/package/sendbird) module for [SendBird.com](https://sendbird.com) JavaScript SDK |
| 13 | +[npm](https://www.npmjs.com/package/sendbird) module for [SendBird.com](https://sendbird.com) JavaScript SDK |
17 | 14 |
|
18 |
| - npm install sendbird --save |
| 15 | + npm install sendbird --save |
19 | 16 |
|
| 17 | +[download](https://github.com/sendbird/SendBird-SDK-JavaScript) for [SendBird.com](https://sendbird.com) JavaScript SDK |
20 | 18 |
|
21 |
| -[download](https://github.com/sendbird/SendBird-SDK-JavaScript) for [SendBird.com](https://sendbird.com) JavaScript SDK |
| 19 | +# TypeScript |
22 | 20 |
|
| 21 | +Install via NPM and import like below in your TypeScript file: |
23 | 22 |
|
24 |
| -# TypeScript |
25 |
| -Install via NPM and import like below in your TypeScript file: |
26 |
| -```javascript |
27 |
| -import * as SendBird from 'sendbird'; |
28 |
| -var sb = new SendBird({'appId': 'APP_ID'}); |
| 23 | +```javascript |
| 24 | +import * as SendBird from "sendbird"; |
| 25 | +var sb = new SendBird({ appId: "APP_ID" }); |
29 | 26 | // do something...
|
30 |
| -``` |
31 |
| -If you have trouble importing `SendBird`, please check your `tsconfig.json` file and change the value of `"allowSyntheticDefaultImports"` to `true` in `compilerOptions`. |
| 27 | +``` |
| 28 | + |
| 29 | +If you have trouble importing `SendBird`, please check your `tsconfig.json` file and change the value of `"allowSyntheticDefaultImports"` to `true` in `compilerOptions`. |
32 | 30 |
|
| 31 | +# [Sample](https://github.com/sendbird/SendBird-JavaScript) |
| 32 | + |
| 33 | +- [Basic Sample](https://sample.sendbird.com/basic) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-sample) |
| 34 | +- [Widget Sample](https://sample.sendbird.com/widget) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-widget) |
| 35 | +- [LiveChat Sample](https://sample.sendbird.com/livechat) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-live-chat) |
33 | 36 |
|
34 |
| -# [Sample](https://github.com/sendbird/SendBird-JavaScript) |
35 | 37 |
|
36 |
| - * [Basic Sample](https://sample.sendbird.com/basic) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-sample) |
37 |
| - * [Widget Sample](https://sample.sendbird.com/widget) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-widget) |
38 |
| - * [LiveChat Sample](https://sample.sendbird.com/livechat) using [Sendbird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). [download](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-live-chat) |
39 |
| - |
40 | 38 | ## SyncManager
|
41 |
| -`SyncManager` is a support add-on for [SendBird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). Major benefits of `SyncManager` are, |
42 |
| - |
43 |
| - * Local cache integrated: store channel/message data in local storage for fast view loading. |
44 |
| - * Event-driven data handling: subscribe channel/message event like `insert`, `update`, `remove` at a single spot in order to apply data event to view. |
45 |
| - |
46 |
| -Check out [Basic Sample with SyncManager](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-basic-sample-syncmanager) which is similar to [Basic Sample](https://sample.sendbird.com/basic) but `SyncManager` integrated. For more information about `SyncManager`, please refer to [SyncManager README](https://github.com/sendbird/sendbird-syncmanager-javascript/blob/master/README.md). |
47 | 39 |
|
| 40 | +`SyncManager` is a support add-on for [SendBird SDK](https://github.com/sendbird/SendBird-SDK-JavaScript). Major benefits of `SyncManager` are, |
48 | 41 |
|
49 |
| -# [Documentation](https://docs.sendbird.com/javascript) |
| 42 | +- Local cache integrated: store channel/message data in local storage for fast view loading. |
| 43 | +- Event-driven data handling: subscribe channel/message event like `insert`, `update`, `remove` at a single spot in order to apply data event to view. |
50 | 44 |
|
51 |
| -## v3.0.112(NOV 8, 2019) |
52 |
| -If you want to check the record of other version, go to [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md). |
| 45 | +Check out [Basic Sample with SyncManager](https://github.com/sendbird/SendBird-JavaScript/tree/master/web-basic-sample-syncmanager) which is similar to [Basic Sample](https://sample.sendbird.com/basic) but `SyncManager` integrated. For more information about `SyncManager`, please refer to [SyncManager README](https://github.com/sendbird/sendbird-syncmanager-javascript/blob/master/README.md). |
| 46 | + |
| 47 | +# [Documentation](https://docs.sendbird.com/javascript) |
53 | 48 |
|
54 |
| - * Added `updateCurrentUserInfoWithPreferredLanguages()` in `SendBird`. |
55 |
| - * When `preferredLanguages` is set, push notification message would get translated with target languages. |
56 |
| - * Added `preferredLanguages` in `User`. |
57 |
| - * Added `messageOffsetTimestamp` in `GroupChannel`. |
58 |
| - * Added `reqId` for the `BaseMessage`s which are fetched from API call. |
59 |
| - * Improved stability. |
| 49 | +## v3.0.113(DEC 4, 2019) |
60 | 50 |
|
| 51 | +If you want to check the record of other version, go to [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md). |
61 | 52 |
|
62 |
| -## [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md) |
| 53 | +- Added `errorCode` and `isResendable()` in `UserMessage` and `FileMessage`. |
| 54 | + - `resendUserMessage()` and `resendFileMessage()` work only when `isResendable()` is `true`. |
| 55 | +- Improved stability. |
63 | 56 |
|
| 57 | +## [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md) |
64 | 58 |
|
65 | 59 | ## License
|
66 |
| -[SendBird License](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/LICENSE.md) |
67 |
| - |
68 | 60 |
|
| 61 | +[SendBird License](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/LICENSE.md) |
0 commit comments