Skip to content

Commit

Permalink
[#366 #353 #358] Make make-channel-socket-client! respect host option (
Browse files Browse the repository at this point in the history
  • Loading branch information
Rkiouak authored and ptaoussanis committed May 25, 2020
1 parent 800f1bb commit 9bb09ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/taoensso/sente.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1502,8 +1502,8 @@

(let [protocol (or protocol (:protocol win-loc) :http)
host (if port
(str (:hostname win-loc) ":" port)
(do (:host win-loc)))]
(str (or host (:hostname win-loc)) ":" port)
(do (or host (:host win-loc))))]
[(get-chsk-url protocol host path :ws)
(get-chsk-url protocol host path :ajax)])))

Expand Down

0 comments on commit 9bb09ac

Please sign in to comment.