Use production port also, remove log messages

This commit is contained in:
Nicholas Kariniemi 2013-08-25 12:38:54 +03:00
parent 26035a5174
commit 26963fff9e
2 changed files with 4 additions and 4 deletions

View file

@ -15,9 +15,10 @@
(defn init []
(view/init)
(if-let [server-url (when grub.production grub.production/server-url)]
(do (logs "prod") (ws/connect-to-server server-url 80))
(do (logs "dev") (ws/connect-to-server "localhost" 3000)))
(if-let [url (when grub.production grub.production/server-url)]
(let [port grub.production/server-port]
(ws/connect-to-server url port))
(ws/connect-to-server "localhost" 3000))
(handle-grub-events))
(init)

View file

@ -14,7 +14,6 @@
(defn handle-incoming-events []
(go-loop
(let [event (<! incoming-events)]
(logs "Sending event:" event)
(.send @websocket* event))))
(defn handle-outgoing-events []