Set up pubsub server
Attached listeners to server callbacks