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 [] (defn init []
(view/init) (view/init)
(if-let [server-url (when grub.production grub.production/server-url)] (if-let [url (when grub.production grub.production/server-url)]
(do (logs "prod") (ws/connect-to-server server-url 80)) (let [port grub.production/server-port]
(do (logs "dev") (ws/connect-to-server "localhost" 3000))) (ws/connect-to-server url port))
(ws/connect-to-server "localhost" 3000))
(handle-grub-events)) (handle-grub-events))
(init) (init)

View file

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