taoensso / sente

Realtime web comms library for Clojure/Script
https://www.taoensso.com/sente
Eclipse Public License 1.0
1.74k stars 193 forks source link

Fix ajax downgrade logic #327

Closed michaelcameron closed 6 years ago

michaelcameron commented 6 years ago

Re: https://github.com/ptaoussanis/sente/issues/326, I made this change locally and it falls back to the ajax connection upon the initial websocket failure. It seems like the code should be looking :last-ws-error used elsewhere in code instead of :last-error which does not appear to be used.

ptaoussanis commented 6 years ago

@michaelcameron Thanks for catching + fixing this Michael! Merged manually. @timothypratley Thanks for reviewing!

[com.taoensso/sente "1.13.1"] on Clojars now 👍