Lamba Product Documentation
Learn More
  • πŸ‘‹Welcome to Lamba
  • Overview
    • πŸ’‘Why Lamba?
    • 🍒Our Strategies for Solving Problems
    • β˜‘οΈReasons Why Lamba is Almost Costless!
    • πŸ”’Methods of Security Enforcement
  • Use Cases
    • πŸ‘ For E-commerce (collecting & splitting payments)
    • 🏹For CRMs
    • πŸ‘©β€πŸ’»For CMS
    • πŸ“§Building Email Apps
    • πŸ“©Building SMS Apps
    • πŸ§‘β€πŸ€β€πŸ§‘Building Social Media Publishing Apps
  • Getting Started
    • 🀝Creating Your First App
    • πŸ”Generating API keys & Enabling Services
    • πŸ”‘Recommended Security Considerations
  • Documentation
    • 🐦Understanding Lamba Model
    • ⛱️Lamba UI (JS Client)
      • πŸ‹Live Demo
      • πŸ§‘Installation & Initialization
      • πŸ“Structure of the Initialization Object
      • πŸ§‘How to use a service
        • Using LowMail
        • Using LowSMS
        • Using LowFi
      • 〽️Listening for Events
      • πŸ•ΈοΈHandling Webhooks
    • ♐Lamba API
      • πŸŽ†Endpoint & Authorization
  • Development Roadmap
    • πŸ—ΎRDMP 2023
    • πŸ—ΎRDMP 2024
  • Join The Team
    • πŸ«‚Bring On Your Skillset
Powered by GitBook
On this page

Was this helpful?

  1. Documentation
  2. Lamba UI (JS Client)

Listening for Events

Learn how to listen for events emitted for each action executed by each Lamba services

Helpful tip: events are always emitted on the Lamba UI whenever an action is successfully executed

Listening for emitted events

The code snippet below shows how you can listen for events emitted by the Lamba JS library:

lamba.on('name_of_emitted_event',(data)=>{
   console.log('actionId...',data.id);
});

The data emitted contains the id of the action stored on Lamba. You can use the id to query the Lamba API to get the status and other information about that action performed.

Kind of events emitted in the Lamba UI:

Event Name
Description

emailSent

returns the id of action for the sent email as {id: "action_id_here..."}

smsSent

returns the id of action for the sent SMS as {id: "action_id_here..."}

paymentVerified

returns the id of action for the payment transaction as {id: "action_id_here..."}

PreviousUsing LowFiNextHandling Webhooks

Last updated 1 year ago

Was this helpful?

⛱️
〽️