Build chat applications with PubNub Chat SDK
Agent Success
Agent success rate when using this tile
95%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.83x
Baseline
Agent success rate without this tile
52%
You are setting up the PubNub Chat SDK for a web application that requires authenticated access. The application uses PubNub Access Manager, and each user receives an authentication token from your backend server upon login. The backend provides the token as part of the login response.
Write a JavaScript module (chat-init.js) that:
chat-init.js file that exports an async function to initialize and return a Chat SDK instance with authentication support.