connection.publish and message obj