# Implement SSE (in combination with OAuth2)

**URL:** <https://community.homey.app/t/implement-sse-in-combination-with-oauth2/60138>\
**Category:** Developers\
**Tags:** app\
**Created:** [February 10, 2022, 10:22am UTC](https://community.homey.app/t/implement-sse-in-combination-with-oauth2/60138 "2022-02-10T10:22:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monique\_Jilesen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/monique_jilesen/32/48184_2.png) [@Monique\_Jilesen](https://community.homey.app/u/Monique_Jilesen)\
**Post date:** [February 10, 2022, 10:22am UTC](https://community.homey.app/t/implement-sse-in-combination-with-oauth2/60138/1 "2022-02-10T10:22:56Z")

</div>

I’m implementing an app that uses eventing (SSE) to get updates from the device.

I have implemented a driver and device using the Homey OAuth2 app and everything is working fine (requesting devices, getting the state, etc).

They also supply eventing url’s but I don’t know how to implement this in Homey. I tried using EventSource but nothing seems to happen.

Does anybody have an example for me how to implement this? Or is this not possible in the current Homey implementation and do I need to implement the good old polling mechanism?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 10, 2022, 11:19am UTC](https://community.homey.app/t/implement-sse-in-combination-with-oauth2/60138/2 "2022-02-10T11:19:03Z")

</div>

> [@Monique\_Jilesen](#):
>
> They also supply eventing url’s but I don’t know how to implement this in Homey. I tried using EventSource but nothing seems to happen.

You need a Node.js implementation for `EventSource`, like [this one](https://www.npmjs.com/package/eventsource).
