WSS with Draft10 Support

Vibul Imtarnasan vibuli at gmail.com
Mon Oct 31 18:33:06 EDT 2011


So what are you running on port 8080? tomcat or the websocket example app?

I am assuming that you are running the same app:
https://github.com/netty/netty/tree/master/src/main/java/org/jboss/netty/example/http/websocketx/server
.

If this is the case, you need to append websocket to your url as previously
mentioned:

      socket = new WebSocket("ws://localhost:8080/*websocket*");

If you just have ws://localhost:8080/, the code will assume that you are
requesting an HTML demo page and hence get the HTTP Version error.

Vibul


On 31 October 2011 23:04, Tamirk <tamirklein at hotmail.com> wrote:

> Hi,
>
> Unfortunately this doesn't shade light on the issue :(
> since I I created a static html page and for sure I reach the correct place
> on the server side (As you can see from the log print) I don't need to use
> the /websocket when initing the socket var on the Web page.
>
> I invested over 2 days trying to get the Web page work with the Netty
> SecureChat server example but it simply refuse to work.
>
> I'm sure it should be possible and I'm just missing something in the way I
> set this up.
> So the question is what.
>
> If you can think of ant thing else or you can provide some code which works
> it will be great.
>
> Cheers,
>
> Tamir
>
> Note: Currently my web page are working on top of Apache and Tomcat.
>
> --
> View this message in context:
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/WSS-with-Draft10-Support-tp6945374p6947937.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20111101/5a8808ce/attachment.html 


More information about the netty-users mailing list