Use /ws path for websocket connections

- Less confusion around upgrading HTTP connections to WebSocket
This commit is contained in:
Nicholas Kariniemi 2015-05-01 08:56:37 +03:00
parent 1eb7136d27
commit 021ec1b531

View file

@ -11,7 +11,7 @@
(def protocol (.-protocol location))
(def ws-protocol (if (= protocol "http:") "ws://" "wss://"))
(def host (.-host location))
(def path (.-pathname location))
(def path (str (.-pathname location) "ws"))
(def server-url (str ws-protocol host path))
(def reader (t/reader :json))
(def writer (t/writer :json))