Use /ws path for websocket connections
- Less confusion around upgrading HTTP connections to WebSocket
This commit is contained in:
parent
1eb7136d27
commit
021ec1b531
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue