issues
search
peddybeats
/
jukebox
A customizable Spotify playlist generator that learns your music taste over time
http://jukebox.peddy.ai
0
stars
2
forks
source link
[148.4] Configure App to publish JukeboxCreated PubSub events
#152
Open
peddybeats
opened
6 years ago
peddybeats
commented
6 years ago
Create pubsub_client.js
Expose init()
Should instantiate the pubsub client
Expose publish(topic_id, message)
Should use global pubsub client and get a publisher isntance
Should return a promise that lets the caller consume result
In server.main() call pubsub_client.init()
In app.generateJukebox(), at the end of the promise chain, call pubsub_client.publish(JUKEBOX_CREATED_TOPIC_ID, jukeboxId)