       (make-ui main-layout) ))
 
 (import '(com.rabbitmq.client ConnectionFactory Connection Channel MessageProperties QueueingConsumer))
-(defn sendQueue [msg]
+(defn send [msg]
   (do
     (def factory (ConnectionFactory.))
     (.setHost factory "obi.kaicode.com")

    (.basicConsume channel queue true consumer)
    (def delivery (.nextDelivery consumer))
    (def message (String. (.getBody delivery)))
    (println message)
)

    (def queue "han.printer")
    (.queueDeclare channel queue true false false nil)
    (.basicPublish channel "" queue MessageProperties/PERSISTENT_TEXT_PLAIN (.getBytes msg))    
    (.close channel)
    (.close connection)
    )
)

(defn read []
    (def factory (ConnectionFactory.))
    (.setHost factory "obi.kaicode.com")
    (def connection (.newConnection factory))
