Thank you! Hope you can fix it!
On 7月5日, 下午12时39分, Anthony Baxter <[email protected]> wrote:
> My suspicion is the recently pushed version of jetty. I've not looked
> at the Jetty code before, but I'm going to have a look.
>
>
>
>
>
> On Fri, Jul 2, 2010 at 07:35, Torben <[email protected]> wrote:
> > Hi,
>
> > to test the source of the problem I wrote a small web page that
> > connects to FedOne via websockets and sends an initial request
>
> > I receive two messages in return from the server:
> > {"version":1,"sequenceNumber":
> > 0,"messageType":"ProtocolWaveletUpdate","messageJson":"{\"1\":\"wave://
> > indexwave/indexwave/dummy+root\",\"2\":[],\"6\":false,\"7\":
> > \"ch16\"}"}
> > {"version":1,"sequenceNumber":
> > 0,"messageType":"ProtocolWaveletUpdate","messageJson":"{\"1\":\"wave://
> > indexwave/indexwave/dummy+root\",\"2\":[],\"6\":true}"}.
>
> > Then the websocket is closed. This means the error is either with
> > Chrome or with the Server. At least it is not the client code I
> > suppose.
>
> > --------------------------------------------------------------------------
>
> > <!DOCTYPE html>
> > <html>
> >  <head>
> >   <title>Test</title>
> >   <meta http-equiv="content-type" content="text/html; charset=utf-8">
> >   <script type="text/javascript">
>
> > var socket;
>
> > function openSocket()
> > {
> >  socket = new WebSocket("ws://localhost:9898/socket");
> >  socket.onopen = function(event) { socket.send('{"version":1,
> > "sequenceNumber":0, "messageType":"ProtocolOpenRequest",
> > "messageJson":"{\\"1\\":\\"w...@localhost\\",\\"2\\":\\"indexwave!
> > indexwave\\",\\"3\\":[\\"\\"],\\"4\\":2000,\\"5\\":true}"}'); };
> >  socket.onmessage = function(event) { alert(event.data); }
> >  socket.onclose = function(event) { alert("closed"); }
> >  socket.onerror = function(event) { alert("error"); }
> > }
>
> >   </script>
> >  </head>
> >  <body>
> >  <h1>Web Socket test</h1>
> >        <div>
> >          <input type="button" onclick="openSocket();" value="Open"/>
> >        <div>
> >  </body>
> > </html>
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Wave Protocol" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/wave-protocol?hl=en.
>
> --
> Anthony Baxter, [email protected]

-- 
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/wave-protocol?hl=en.

Reply via email to