Websocket Chat example no longer working in Chrome 16 and play 1.2.4

711 views
Skip to first unread message

Haithem Turki

unread,
Dec 19, 2011, 5:26:49 AM12/19/11
to play-framework
Hello,

So I was really pumped that Websockets were working in Chrome with
play 1.2.4, but it seems that with Chrome 16 it is no longer working
(the chat example returns a "Unexpected response code: 426" error).
Can anyone confirm this/share any workaround that they found to get
around this? Thanks so much.

Cheers,
Haithem

Nicolas Leroux - committer

unread,
Dec 20, 2011, 3:58:00 AM12/20/11
to play-fr...@googlegroups.com
Is chrome 16 the previous version? If it is the case it should just works, as it supports the hixie76 protocol that safari also support and it works on safari. Where do you get the error exactly?

Doug Kulak

unread,
Dec 20, 2011, 2:04:32 PM12/20/11
to play-framework
I am getting the same issue. Using latest version of Chrome
16.0.912.63 m on Windows 7 x64. WebSockets still work fine in Safari,
but upon trying to open the socket in Chrome an error shows up in the
console that reads "Unexpected response code: 426". Using Play 1.2.4.
Haven't figured out a solution yet.

On Dec 20, 12:58 am, Nicolas Leroux - committer

Nicolas Leroux - committer

unread,
Dec 20, 2011, 2:07:49 PM12/20/11
to play-fr...@googlegroups.com
That's probably because they are using the latest version of the protocol that has been published 3 weeks ago. I will upgrade the web socket protocol. Is chrome 16.0.912.63 the latest version? How old is that version?

Michal Fiedorowicz

unread,
Dec 20, 2011, 2:39:19 PM12/20/11
to play-fr...@googlegroups.com
16.0.912.63 is latest stable and was released December 13, 2011.

Jonas

unread,
Dec 20, 2011, 9:09:09 PM12/20/11
to play-framework
Remember that WebSockets now is RFC 6455. According to Wikipedia,
Chrome 16 is using the RFC-version.

On 20 Dec, 20:07, Nicolas Leroux - committer

DanInDC

unread,
Dec 20, 2011, 11:31:19 PM12/20/11
to play-framework
Netty should have RFC 6455 in a coming release, but not yet. I spoke
with the developers and they aren't sure when the next scheduled
release is.

You can pull from trunk which has RFC 6455 support passing the
websocket test suite.

Nicolas Leroux

unread,
Dec 21, 2011, 5:56:01 AM12/21/11
to play-fr...@googlegroups.com, play-framework
Yes the rfc is 2 weeks old so you cannot expect it to be supported in play 1.2.4. It will be in play 1.2.5 and it is already supported in play 2


Nicolas Leroux

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>

Nicolas Leroux

unread,
Dec 21, 2011, 5:57:06 AM12/21/11
to play-fr...@googlegroups.com, play-framework
Where is the web socket test suite?


Nicolas Leroux

DanInDC

unread,
Dec 21, 2011, 8:59:10 AM12/21/11
to play-framework
I'm not sure how they are run, but the test suite is from
http://www.tavendo.de/autobahn/testsuite.html. You'd have to talk to
the netty folks to get a better idea.

On Dec 21, 5:57 am, Nicolas Leroux <leroux.nico...@gmail.com> wrote:
> Where is the web socket test suite?
>
> Nicolas Leroux
>

Nicolas Leroux

unread,
Dec 21, 2011, 9:05:41 AM12/21/11
to play-fr...@googlegroups.com
Thanks
Reply all
Reply to author
Forward
0 new messages