Use production port also, remove log messages
This commit is contained in:
parent
26035a5174
commit
26963fff9e
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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 []
|
||||
|
|
Loading…
Reference in a new issue