convert to MQTT PubSub for servers