Naive but functional implementation of PUBLISH and SUBSCRIBE with QoS level = 0