Fork me on GitHub
#immutant
<
2015-09-23
>
tcrawley00:09:49

@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

tcrawley00:09:56

can you gist your project.clj?

tcrawley00:09:11

or the output of lein deps :tree?

michal08:09:01

@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!

tcrawley12:09:14

@michal: glad you figured it out

colin.yates16:09:36

hi all - anyway to get run-dmc to not open a browser window?

tcrawley17:09:02

@colin.yates: I just replied on twitter. with-redefs is probably your best bet right now

tcrawley17:09:14

or altering the var root of browse-url

colin.yates17:09:03

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?

tcrawley17:09:54

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

colin.yates17:09:37

ah OK - I am using goog…WebSocket so will look there

tcrawley17:09:04

does js even support byte arrays? I'm not very cluefull there

colin.yates17:09:21

no idea - I assumed it did, but you know what they say about assumptions simple_smile

tcrawley17:09:23

basically, you'll only get a byte[] if the incoming message is a BytesMessage (in case I wasn't clear enough)

colin.yates17:09:35

you were - thanks.

tcrawley17:09:49

ah, so String it is

tcrawley17:09:06

I'm sure that's a byte[] at some low-level in undertow, but we can't get at it

colin.yates17:09:27

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.

colin.yates17:09:36

I am a bad, bad developer today simple_smile