ptaoussanis/sente — pull request #81 by valichek (2014-10-09 20:37:15+00:00)
Title: Add example without cljx

It is difficult (no success, impossible?) to run cljx example in LightTable, so I just splited code into two sepate projects, one for client and one for server. I switched some dependencies to the latest versions and turned off transit parser (got exceptions from transit.clj)

Exceptions when run server with transit parser:
"\tat clojure.core$max_key.invoke(core.clj:4598)"
"\tat clojure.core$max_key.doInvoke(core.clj:4600)"
"\tat clojure.lang.RestFn.applyTo(RestFn.java:146)"
"\tat clojure.core$apply.invoke(core.clj:626)"
"\tat taoensso.sente.packers.transit$fn__13073$fn__13074.invoke(transit.clj:59)"
"\tat taoensso.sente.packers.transit.FlexiPacker.pack(transit.clj:83)"
"\tat taoensso.sente$pack_STAR_.invoke(sente.clj:226)"
"\tat clojure.lang.AFn.applyToHelper(AFn.java:160)"
"\tat clojure.lang.AFn.applyTo(AFn.java:144)"
"\tat clojure.core$apply.invoke(core.clj:624)"
"\tat taoensso.sente$pack.doInvoke(sente.clj:236)"
"\tat clojure.lang.RestFn.invoke(RestFn.java:436)"
"\tat taoensso.sente$make_channel_socket_BANG_$send_fn__12245$flush_buffer_BANG___12249.invoke(sente.clj:380)"
"\tat taoensso.sente$make_channel_socket_BANG_$send_fn__12245$fn__12305$state_machine__8946__auto____12306$fn__12308.invoke(sente.clj:420)"
"\tat taoensso.sente$make_channel_socket_BANG_$send_fn__12245$fn__12305$state_machine__8946__auto____12306.invoke(sente.clj:419)"
"\tat clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:940)"
"\tat clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:944)"
"\tat clojure.core.async.impl.ioc_macros$take_BANG_$fn__8962.invoke(ioc_macros.clj:953)"
"\tat clojure.core.async.impl.channels.ManyToManyChannel$fn__4608.invoke(channels.clj:262)"
"\tat clojure.lang.AFn.run(AFn.java:22)"
"\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)"
"\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)"
"\tat java.lang.Thread.run(Thread.java:745)"
"Exception in thread \"async-dispatch-27\" "
"java.lang.NullPointerException"
"\tat clojure.lang.Numbers.ops(Numbers.java:961)"
"\tat clojure.lang.Numbers.gt(Numbers.java:227)"
"\tat clojure.core$max_key.invoke(core.clj:4598)"
"\tat clojure.core$max_key.doInvoke(core.clj:4600)"
"\tat clojure.lang.RestFn.applyTo(RestFn.java:146)"
"\tat clojure.core$apply.invoke(core.clj:626)"
"\tat taoensso.sente.packers.transit$fn__13073$fn__13074.invoke(transit.clj:59)"
"\tat taoensso.sente.packers.transit.FlexiPacker.pack(transit.clj:83)"
"\tat taoensso.sente$pack_STAR_.invoke(sente.clj:226)"
"\tat clojure.lang.AFn.applyToHelper(AFn.java:160)"
"\tat clojure.lang.AFn.applyTo(AFn.java:144)"
"\tat clojure.core$apply.invoke(core.clj:624)"
"\tat taoensso.sente$pack.doInvoke(sente.clj:236)"
"\tat clojure.lang.RestFn.invoke(RestFn.java:436)"
"\tat taoensso.sente$make_channel_socket_BANG_$send_fn__12245$flush_buffer_BANG___12249.invoke(sente.clj:380)"
"\tat taoensso.sente$make_channel_socket_BANG_$send_fn__12245$fn__12335$state_machine__8946__auto____12336$fn__12338.invoke(sente.clj:422)"
"\tat taoensso.sente$make_channel_socket_BANG_$send_fn__12245$fn__12335$state_machine__8946__auto____12336.invoke(sente.clj:421)"
"\tat clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:940)"
"\tat clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:944)"
"\tat clojure.core.async.impl.ioc_macros$take_BANG_$fn__8962.invoke(ioc_macros.clj:953)"
"\tat clojure.core.async.impl.channels.ManyToManyChannel$fn__4608.invoke(channels.clj:262)"
"\tat clojure.lang.AFn.run(AFn.java:22)"
"\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)"
"\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)"
"\tat java.lang.Thread.run(Thread.java:745)"