Jarppe Länsiö
join@metosin.fi
ClojureScript and WebSockets
WebSockets
simple programming model
async communication model
cross-domain, no same source origin policy
full duplex communication, let your servers call clients too
ws connection maintains tcp/ip socket to your server
server affinity out of the box
good: sweet in-memory sessions
bad: slow dynamic scaling
ClojureScript story
Take your pick
ptaoussanis/sente
aleph
weavejester/haslett (cljs only)
nilenso/wscljs (cljs only)
metosin/eines
...propably more by now
metosin/eines
not ready for production
we use it, but the documentation etc is still missing
server side support for immutant only
why?
sessions
rpc
symmetric rpc
https://github.com/metosin/clojure-finland-2018-05-30-cljs-ws-demo
demo time

ClojureScript and WebSockets