This is full screen chat sample like Slack using SendBird SDK for desktop browsers. SyncManager is included and applied.
SyncManager is a support add-on for SendBird SDK. Major benefits of SyncManager are,
- Local cache integrated: store channel/message data in local storage for fast view loading.
- Event-driven data handling: subscribe channel/message event like
insert,update,removeat a single spot in order to apply data event to view.
Check out Basic Sample with SyncManager which is same as Basic Sample with SyncManager integrated.
For more information about SyncManager, please refer to SyncManager README.
You can try out a live demo from the link here.
- Install packages
Require that you have Node v8.x+ installed.
npm install- Run
npm startIf you want to put some changes into the sample, you should build it using webpack.
- Install packages
Require that you have Node.js v8.x+ installed.
npm install- Modify files
If you want to change
APP_ID, changeAPP_IDin const.js to the otherAPP_IDyou want.
You can test the sample with local server by running the following command.
npm run start:dev- Build the sample
When the modification is complete, you'll need to bundle the file using
webpack. The bundled files are created in thedistfolder. Please checkwebpack.config.jsfor settings.
npm run build