Closed retrogradeorbit closed 8 years ago
Hi there - think this might be a typo: :fression
-> :fressian
?
James
Well that's embarrassing... I was all excited this would fix it, but after changing to the correct spelling it still doesn't like it.
java.lang.IllegalArgumentException: No method in multimethod 'formatter*' for dispatch value: :fressian
For mor info, I've been testing it in this little test project:
https://github.com/retrogradeorbit/multiplayer/blob/master/src-cljs/multiplayer/core.cljs#L106
OK. I got this working by :requiring chord.format.fressian in the ns declaration (even though I don't directly use it). This seems to register the multimethod and then the :format :fressian works.
So
(:require [chord.format.fressian :as fressian])
...
(GET "/ws" []
(wrap-websocket-handler ws-handler {:format :fressian}))
Got a system going with {:format :transit-json}, but now when I try to switch to fression with code like this:
The wrap-socket-handler fails with:
Are there any docs or examples of working fression client/server connections?