Setup
You will need to install the Momento Client Library in your project. Given Momento’s compatibility with Node.js, browser, and edge environments, ensure you install the relevant package. To install for Node.js:npm
npm
npm
Usage
To distinguish one chat history session from another, we need a uniquesessionId
. You may also provide an optional sessionTtl
to make sessions expire after a given number of seconds.