Fix incorrect publish call when using socket.io. Include topic and body in payload sent to client