On Wednesday, September 3, 2014 9:48:58 AM UTC-7, sri wrote: > > The pod for the websocket method in Mojo::UserAgent says >> >> The callback will receive either a Mojo::Transaction::WebSocket *or* >> Mojo::Transaction::HTTP >> object. >> >> >> but I don't understand *why* it can send back either one, or what I'm >> supposed to do with a Mojo::Transaction::HTTP object if I get one. >> > > Updated. > > > https://github.com/kraih/mojo/commit/b8e10a0bbfaa22d79af2dce696aeea8b8150ec87 >
Ok, thanks for that: +depending on if the handshake was +successful. but do you know why the same code would produce a successful handshake when running in a simple CLI script but fail when running in a Mojo app? Also, are you sure it's an unsuccessful handshake? I don't see anything at all going over the wire in that instance. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
