# Meeting ended webhook slow(2 minutes)

**URL:** <https://devforum.zoom.us/t/meeting-ended-webhook-slow-2-minutes/42180>\
**Category:** API and Webhooks\
**Created:** [February 1, 2021, 5:49pm UTC](https://devforum.zoom.us/t/meeting-ended-webhook-slow-2-minutes/42180 "2021-02-01T17:49:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![an4rei](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/an4rei/32/22523_2.png) [@an4rei](https://devforum.zoom.us/u/an4rei)\
**Post date:** [February 1, 2021, 5:49pm UTC](https://devforum.zoom.us/t/meeting-ended-webhook-slow-2-minutes/42180/1 "2021-02-01T17:49:58Z")

</div>

I’ve setup webhooks on meeting start and meeting end.

Meeting start is received exactly when I enter the created meeting as a host.  
Meeting end is received after 2-3 minutes.

I’m mentioning that the webhook is used with the web SDK.

I’m ending a meeting by simply joining first(so it starts) and then I refresh the page/close tab → meeting ends.

Here are some logs:  
Meeting start (instant)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/9/a9cc475f78be283dcf66a7c9697ce5c1ef3002d5.png)

```auto
    stdClass Object
(
    [event] => meeting.started
    [payload] => stdClass Object
        (
            [account_id] => xxx
            [object] => stdClass Object
                (
                    [duration] => 60
                    [start_time] => 2021-02-01T17:40:40Z
                    [timezone] => Europe/London
                    [topic] => Meeting #1
                    [id] => xxxx
                    [type] => 1
                    [uuid] => xxx
                    [host_id] => xxx
                )

        )

    [event_ts] => 1612201240869
)

```

While meeting end:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/4/b487c57b939fee66cba6bfce99a46e37e79e7736.png)

```auto
    stdClass Object
(
    [event] => meeting.ended
    [payload] => stdClass Object
        (
            [account_id] => xxx
            [object] => stdClass Object
                (
                    [duration] => 60
                    [start_time] => 2021-02-01T17:40:40Z
                    [timezone] => Europe/London
                    [end_time] => 2021-02-01T17:40:47Z
                    [topic] => Meeting #1
                    [id] => xxx
                    [type] => 1
                    [uuid] => xxx
                    [host_id] => xxx
                )

        )

    [event_ts] => 1612201247628
)

```

You can clearly see in the second webhook request that the meeting had ended at (2021-02-01T17:40:47Z) but the request itself had been sent and received at 17:42:38 (2 mins and 30 seconds later)

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 1, 2021, 10:40pm UTC](https://devforum.zoom.us/t/meeting-ended-webhook-slow-2-minutes/42180/2 "2021-02-01T22:40:38Z")

</div>

Hey @an4rei,

Thank you for reaching out to the Zoom Developer Forum. It seems that you’re hitting an internal session timeout for the host and the back-end server is then considering the meeting to have ended when that timeout completes without communicating to the Web SDK.

This is the expected behavior if close a browser tab from what I understand. Instead, you’ll want to end the meeting through the Web SDK UI before closing the tab.

This is also true if a user leaves a meeting without using the UI. You’ll see that Zoom leaves them in the meeting for a short period of time before considering them to have left the meeting.

If you want to end the meeting when the tab is closed, you can listen for the `unload` and `beforeUnload` events and call the `ZoomMtg.endMeeting()` function.

I hope that helps!

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 4, 2021, 8:40am UTC](https://devforum.zoom.us/t/meeting-ended-webhook-slow-2-minutes/42180/3 "2021-03-04T08:40:50Z")

</div>

Closed on March 4, 2021, 8:40am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
