Custom Storage
#
Why do I need storage?The storage is used to store the session (authentication keys, server salts and time offset)
#
How to make your own custom storage?#
1. CreateIt's easy. The custom storage must follow this API:
Examples can be found in the last section
#
2. UseCreate an instance of the custom storage and pass it to storageOptions.instance
:
#
Ready-made storagesThe library includes ready-made storages:
- tempStorage only stores data while the script is running