File

src/modules/firetask/providers/ft-chat.ts

Index

Properties
Methods

Constructor

constructor(events: Events, session: FtSessionProvider, storage: Storage, utils: FtUtilsProvider)
Parameters :
Name Type Optional Description
events Events
session FtSessionProvider
storage Storage
utils FtUtilsProvider

Methods

Public db
db()
Returns : any
Public persists
persists(entries?: any[])

Persists chat messages on localStorage

Parameters :
Name Type Optional Description
entries any[] true
Returns : Promise<any>
Public recovery
recovery()

Recovers the list of messages

Returns : Promise<any>
Public save
save(entry: any)

Saves a chat message

Parameters :
Name Type Optional Description
entry any
Returns : Promise<any>

Properties

Public events
events: Events
Type : Events
fire
fire: any
Type : any
Public session
session: FtSessionProvider
Type : FtSessionProvider
Public storage
storage: Storage
Type : Storage
storageNamespace
storageNamespace: string
Type : string
Default value : firetask:chats
Public utils
utils: FtUtilsProvider
Type : FtUtilsProvider

results matching ""

    No results matching ""