On 02/06/2012 08:32, Christian Finckler wrote:
> Hello,
> I had the same problem some time ago.
> I could get jwesocket to work either.
> But I then used autobahn:
> http://autobahn.ws/developers/autobahnandroid/installation

The Tomcat WebSocket implementation is tested against Autobahn (and
everything passes) so the Autobahn client is very likely to just work.

> That worked great for me.
> 
> I couldn't find out if the different client libraries do something wrong
> or tomcat but I was a bit disapointet, too.

There have been many versions of the WebSocket protocol as it has
evolved into what is now RFC 6455. I suspect that the clients that don't
work either have been written to an earlier version of the protocol or
have some bugs.

> Perhaps that gets better when the draft is finished.

RFC 6455 support is what you need to look for. If you find something
that doesn't work with an RFC 6455 client then you'll almost certainly
need to collect a wireshark trace to find out what is going wrong and where.

Mark

> 
> Btw. for normal java I use asynch http with netty.
> 
> Bye,
> Chris
> 
> Am 02.06.2012 04:38, schrieb Ravi:
>>
>> I am trying to build an android app that connects to tomcat web sockets.
>>
>> I need a few java classes that can interact with tomcat websockets. I
>> have tried 3 different implementations
>> (strumsoft, jwebsockets and something else also) but neither one can
>> talk to tomcat correctly.
>>
>> The issue seems to be protocol incompatibility between tomcat as
>> server and any existing java websockets client.
>>
>> I even compiled jwebsockets swing based test client and that also
>> cannot talk to tomcat. Surprisingly all javascript based clients can
>> talk to tomcat, only java based cannot.
>>
>>
>> So having done all that research, I wonder if somebody can help me
>> identify java classes that will work with tomcat. Does tomcat have a
>> client jar I can use?
>>
>> Help!
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to