@michal: I haven't seen that specific error before, but that can be caused when there is a class on the classpath that is a duplicate of one in the proper jar
can you gist your project.clj?
or the output of lein deps :tree
?
@tcrawley: yup, that was the case. ring-middleware-format is pulling ring/ring-jetty-adapter dependency which in turn pulls javax.servlet/servlet-api. simple exclusion made made it working again. thanks!
@michal: glad you figured it out
hi all - anyway to get run-dmc to not open a browser window?
@colin.yates: I just replied on twitter. with-redefs
is probably your best bet right now
or altering the var root of browse-url
Thanks @tcrawley - issue raised: https://issues.jboss.org/browse/IMMUTANT-582
thanks :)
for web sockets, the doc states msg is either a String or byte[] - if I am using transit-cljs then it seems to come through as a String - this seems inefficient. Is there a way to hook into the byte-array before it is converted to a String?
that would make me think that client-side is sending a TextMessage instead of a BytesMessage, so it would already be a String by the time we get it. Seems like you would have to change that on the client side
ah OK - I am using goog…WebSocket so will look there
does js even support byte arrays? I'm not very cluefull there
no idea - I assumed it did, but you know what they say about assumptions :simple_smile:
:)
yeah, so http://closure-library.googlecode.com/git-history/docs/class_goog_net_WebSocket.html states .send takes in a String.
basically, you'll only get a byte[] if the incoming message is a BytesMessage (in case I wasn't clear enough)
you were - thanks.
ah, so String it is
I'm sure that's a byte[] at some low-level in undertow, but we can't get at it
I fully expect any performance gains are all noise anyway for this, and probably most web applications. Thought I would ask simply so I don’t need to decide on a String encoding when I call .getBytes when I turn it back into a byte array for the transit reader.
I am a bad, bad developer today :simple_smile:
heh