on
Pou tache yon callback pou diferan eta nan fenèt la.Predis objè.
Itilizasyon
predis.on("ready", () => {
// SDK is ready to call other methods e.g createPost
});
predis.on("error", () => {
// catch if there is any error SDK initialization
});
paramèt
Non | Deskripsyon | Kalite | Egzije |
---|---|---|---|
state | Eta a tache yon callback a. Valè posib: ready , error | objè | repons lan se wi |
callback | Fonksyon pou egzekite lè eta a deklanche | fonksyon | repons lan se wi |