npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sendbird-syncmanager

v1.1.30

Published

SendBird data sync manager for JavaScript

Downloads

432

Readme

Sendbird SyncManager for JavaScript

Platform Languages npm

Table of contents

  1. Introduction
  2. Before getting started
  3. Getting started

Introduction

Sendbird SyncManager for JavaScript is a Chat SDK add-on that optimizes the user caching experience by interlinking the synchronization of the local data storage with the chat data in Sendbird server through an event-driven structure.

How it works

SyncManager leverages local caching and synchronizes the chat data between the local storage and Sendbird server. By handling the operations in an event-driven structure, the add-on provides a simplified Chat SDK integration and a better user experience.

Operations

  • Background sync occurs whenever there is a connection and automatically stores data fetched from Sendbird server into the local cache.
  • Real time sync occurs all the time; it identifies, stores, and delivers the real-time events received from WebSocket connection.
  • Offline mode ensures your client app is operational during offline mode, meaning that even without background sync, the view can display cached data.

More about Sendbird SyncManager for JavaScript

Find out more about Sendbird SyncManager for JavaScript on SyncManager for JavaScript doc. If you have any comments or questions regarding bugs and feature requests, visit Sendbird community.

Before getting started

This section shows the prerequisites you need to check to use Sendbird SyncManager for JavaScript.

Requirements

The minimum requirements for SyncManager for Javascript are:

  • Node.js v10+
  • NPM v6+
  • Sendbird Chat SDK for JavaScript v3.0.115+

Supported browsers

Apart from browsers that don’t provide IndexDB, SyncManager supports all browsers that Sendbird Chat SDK for JavaScript also supports. Since access to local storage is restricted during private browsing in Firefox or InPrivate in Edge, SyncManager automatically detects the browsing mode and uses memory-based cache instead.

Getting started

This section gives you information you need to get started with Sendbird SyncManager for JavaScript.

Try the sample app

Download the sample app to test the core features of SyncManager for Javascript.

  • https://github.com/sendbird/SendBird-JavaScript/tree/master/web-basic-sample-syncmanager

Note: The fastest way to test our SyncManager is to build your chat app on top of our sample app. Make sure to change the application ID of the sample app to your own. Go to the Create a Sendbird application from your dashboard section to learn more.

Step 1: Create a Sendbird application from your dashboard

A Sendbird application comprises everything required in a chat service including users, message, and channels. To create an application:

  1. Go to the Sendbird Dashboard and enter your email and password, and create a new account. You can also sign up with a Google account.
  2. When prompted by the setup wizard, enter your organization information to manage Sendbird applications.
  3. Lastly, when your dashboard home appears after completing setup, click Create + at the top-right corner.

Regardless of the platform, only one Sendbird application can be integrated per app; however, the application supports communication across all Sendbird’s provided platforms without any additional setup.

Note: All the data is limited to the scope of a single application, thus users in different Sendbird applications are unable to chat with each other.

Step 2: Download SyncManager for Javascript

Sendbird SyncManager currently supports iOS, Android, and JavaScript SDKs. You can download SyncManager for Javascript from our GitHub repository.

Step 3: Install SyncManager for Javascript

SyncManager for JavaScript is distributed through NPM.

Install using the following code:

~$ npm install `sendbird-syncmanager`