Fork me on GitHub
#aleph
<
2022-01-03
>
chucklehead23:01:19

I spent quite a while this weekend trying to replicate the aleph.tcp echo example with a different protocol and failing miserably. It was my first attempt at a server in Clojure, so I initially assumed I was doing something wrong with aleph or manifold, but finally tracked it down to a reflection/type-hinting issue with Gloss. Since it's archived, I forked it to make a git dependency I could use. In case it's useful to anyone else it's available here: https://github.com/casselc/gloss The only changes are a handful of type hints, updated the dependencies to the latest versions, and converted from lein to deps/tools.build.

chucklehead23:01:15

the specific issue I was having was that the Gloss codec would decode buf sequences but not the same data as a single contiguous buffer