[jetty-dev] Java WebSocket Client from main(String [] args)
Scott Morgan <[email protected]> Wed, 6 Mar 2013 23:01:47 -0600
| Newsgroups | gmane.comp.java.jetty.general |
|---|---|
| Message-ID | <CANEdHmhNiO-NRzL7=oJjZcfg-bhspvZYomi3gyLDBuj6v8q7ig@mail.gmail.com> |
--20cf307d054098884e04d74e9a96 Content-Type: text/plain; charset=ISO-8859-1 Hi, Sorry for the cross post, I don't know where this should go. I would like to use the jetty web socket-client in stand alone java applications (outside of a jetty web app ie main(String[] args)). Does the jetty web socket client support this? If not I would suggest it as I am maintaining (somewhat poorly) a WebSocketClient here; http://cvs.adligo.org/viewvc/aws_client/src/org/adligo/aws_client/WebSocketClient.java?view=markup I am getting java.io.IOException: Invalid handshake response 'HTTP/1.1 400 Unsupported websocket version specification: 2147483647' should be 'HTTP/1.1 101 Web Socket Protocol Handshake' TIA, Scott --20cf307d054098884e04d74e9a96 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div style>=A0 =A0Sorry for the cross po= st, I don't know where this should go. =A0I would like to use the jetty= web socket-client in stand alone java applications (outside of a jetty web= app ie main(String[] args)).</div> <div style>=A0 =A0Does the jetty web socket client support this?</div><div = style>=A0 =A0</div><div style>If not I would suggest it as I am maintaining= (somewhat poorly) a WebSocketClient here;</div><div style><a href=3D"http:= //cvs.adligo.org/viewvc/aws_client/src/org/adligo/aws_client/WebSocketClien= t.java?view=3Dmarkup">http://cvs.adligo.org/viewvc/aws_client/src/org/adlig= o/aws_client/WebSocketClient.java?view=3Dmarkup</a><br> </div><div style><br></div><div style>I am getting</div><div style><p style= =3D"margin:0px;font-size:11px;font-family:Monaco;color:rgb(255,38,0)"><span= style=3D"text-decoration:underline;color:rgb(1,25,147)">java.io.IOExceptio= n</span>: Invalid handshake response 'HTTP/1.1 400 Unsupported websocke= t version specification: 2147483647' should be 'HTTP/1.1 101 Web So= cket Protocol Handshake'</p> <p style=3D"margin:0px;font-size:11px;font-family:Monaco;color:rgb(255,38,0= )"><br></p><p style=3D"margin:0px;font-size:11px;font-family:Monaco;color:r= gb(255,38,0)">TIA,</p><p style=3D"margin:0px;font-size:11px;font-family:Mon= aco;color:rgb(255,38,0)"> Scott</p><div><br></div></div></div> --20cf307d054098884e04d74e9a96--