![]() The Customer has reached the maximum number of connections. This is emitted to the user for informational purposes, so for example a reconnection bar can be displayed. Customer SDK reconnects to the correct region on its own, but to avoid this problem altogether, you should provide the correct region parameter when initializing the SDK. You have connected to a server in the wrong region. This internally destroys the current instance of Customer SDK, so it won't be possible to reuse it. #Unpkg moment types licenseYou should check the options passed in to Customer SDK and make sure that the license parameter is correct. The license with the specified ID doesn't exist. You should make sure that there are no unpaid invoices for it. The license with the specified ID has expired. Preferably you should only try to reconnect when you detect a clear intention of chatting from your user. You should implement a reconnect login on your own. Customer SDK won't try to reconnect on its own after receiving this error. The Customer didn't chat or change the page in the past 30 minutes. This might happen if cookies can't be persisted in the browser. The identity of the Customer has changed between reconnects. ![]() The Customer tried reconnecting too many times after the "too_many_connections" error had occurred. Customer SDK will try to reconnect on its own. Connection lostĭisconnected because of the poor connection quality. Customer SDK fetches a new token and reconnects to the server on its own. then ( token => ) Access token expiredĪccess token lifetime has elapsed. Get the authentication token, you can get it through the SDK like this:ĬustomerSDK. You don't have to worry about it or use the exposed object. We authenticate your sessions with the use ofĪnd expose the created auth object to the returned SDK instance. Not familiar with promises? Read this article to learn more. You can subscribe to the emitted events with the on and off methods. If you want to dive deeper into the LiveChat Platform, you might find the Platform Overview article handy. ![]() Keep in mind that interacting with this API requires some development skills.Ĭustomer SDK allows you to create frontend apps, so if you're looking for server-side solutions, you should explore the LiveChat Customer Chat API instead. We provide methods andĮvents for deep integration with the LiveChat environment. ![]() If you need a fully customizable solution and you feelīrave, dive into LiveChat Customer SDK. If you need to customize the LiveChat Widget, using LiveChat Customer SDK is Customer SDK lets you communicate with LiveChat services directly from the browser environment using JavaScript without the need to develop your backend. Under the hood, it makes use of the LiveChat Customer Chat API. Var duration = moment.duration(x.LiveChat Customer SDK is a set of tools that helps you build a custom chat widget. Moment.duration().subtract(Number, String) The following table shows the methods available with duration for different units to be used with moment duration − Method In this chapter, you will learn this in detail. MomentJS provides an important feature called durations which handles length of time for given units. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |