Create discovery.js

We create an array called users, and subscribe to "my_channel". Every time a message is received, we check whether it is a "join" event or a "leave/timeout". Depending on this, we either append the user's UUID to the array or we splice it.