# \[SOLVED\] Viewer.html/js Communicate with PubSub

**URL:** <https://discuss.dev.twitch.com/t/solved-viewer-html-js-communicate-with-pubsub/12963>\
**Category:** Extensions\
**Created:** [November 22, 2017, 4:04am UTC](https://discuss.dev.twitch.com/t/solved-viewer-html-js-communicate-with-pubsub/12963 "2017-11-22T04:04:21Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![tgraupmann](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/tgraupmann/32/3661_2.png) [@tgraupmann](https://discuss.dev.twitch.com/u/tgraupmann)\
**Post date:** [November 23, 2017, 6:10pm UTC](https://discuss.dev.twitch.com/t/solved-viewer-html-js-communicate-with-pubsub/12963/8 "2017-11-23T18:10:58Z")

</div>

> Does this require the user to download something? Or is the keyboard listening to Chrome/WebBrowser? As users are not supposed to download something for the extension.

If the user has Razer Synapse installed, with a Chroma enabled device they will also have the ChromaSDK which also provides a secure REST server API that controls the device lighting.

Broadcasters would have an extra backend server running to get the device data.

Viewers just need the Twitch extension which talks to the secure REST server to play lighting effects.

> Perhaps but that will be different for every user, and it’s only available in a video extension not a panel extension

I see the boilerplate has a viewer extension example.

[https://github.com/twitchdev/extensions-samples/tree/master/boilerplate/frontend](https://github.com/twitchdev/extensions-samples/tree/master/boilerplate/frontend)

> **[Extensions](https://dev.twitch.tv/docs/extensions/)**
>
> Get started with Twitch Extensions

Is there an example of a video extension somewhere?

---

_[View the full topic](https://discuss.dev.twitch.com/t/solved-viewer-html-js-communicate-with-pubsub/12963)._
