example to measure pub/sub latency for Socket.io API
example to measure pub/sub latency for MQTT API