add session and publish message