How to use the ringcentral-widgets/modules/ConnectivityManager/connectivityTypes.networkLoss function in ringcentral-widgets

To help you get started, we’ve selected a few ringcentral-widgets examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ringcentral / ringcentral-js-widgets / packages / ringcentral-widgets / components / ConnectivityAlert / i18n / en-US.js View on Github external
import connectivityTypes from
  'ringcentral-widgets/modules/ConnectivityManager/connectivityTypes';

export default {
  [connectivityTypes.networkLoss]: 'Sorry, something went wrong, check your network connection and try again.',
  [connectivityTypes.offline]: 'Cannot connect to the server. Please retry later.',
  [connectivityTypes.serverUnavailable]: 'Sorry, something went wrong on our end. Try again later.',
  [connectivityTypes.voipOnly]: 'Sorry, something went wrong on our end, but we are working hard to fix it. You can still make calls, but other functions are currently limited.',
  [connectivityTypes.survival]: 'Sorry, something went wrong on our end, but we are working hard to fix it. You may have limited access to certain features. The app will recover automatically as soon as it’s available.',
};
github ringcentral / ringcentral-js-widgets / packages / ringcentral-widgets / components / ConnectivityAlert / index.js View on Github external
ConnectivityAlert.handleMessage = ({ message }) =>
  message === connectivityTypes.networkLoss ||
  message === connectivityTypes.offline ||
  message === connectivityTypes.serverUnavailable ||
  message === connectivityTypes.voipOnly ||
  message === connectivityTypes.survival ||
  message === connectivityTypes.webphoneUnavailable;

ringcentral-widgets

RingCentral Integration Widget Library

MIT
Latest version published 3 years ago

Package Health Score

43 / 100
Full package analysis

Similar packages