Trigger
Constructor
const trigger = new Trigger(options: TriggerOptions)TriggerOptions
Parameter
Type
Default
Description
Methods
Method
Parameters
Returns
Description
Events
import { TRIGGER_EVENT_SUCCESS, Trigger } from "@whereby.com/assistant";
let hasJoined = false;
const trigger = new Trigger({
webhookTriggers: {
"room.client.joined": () => !hasJoined,
},
port: 4999,
});
trigger.on(TRIGGER_EVENT_SUCCESS, ({ roomUrl }) => {
console.log("Trigger successful for room: ", roomUrl);
});Event
Payload
Emitted when
Last updated
Was this helpful?

