[erlang-questions] web sockets almost working ....

Colm Dougan colm.dougan@REDACTED
Thu Dec 10 13:34:17 CET 2009


Joe,

On Thu, Dec 10, 2009 at 10:21 AM, Joe Armstrong <erlang@REDACTED> wrote:
> Very exciting - web sockets is partially working - this is very very
> very exciting
>
> But I can't get past the handshake ...

It appears to make a difference if you add a trailing slash after
WebSocket-Location, i.e. :

   "WebSocket-Location: ws://localhost:1234/\r\n\r\n",

Now I get :

Eshell V5.7.4  (abort with ^G)
1> local_server:start().
<0.33.0>
2> received:"GET / HTTP/1.1\r\nUpgrade: WebSocket\r\nConnection:
Upgrade\r\nHost: localhost:1234\r\nOrigin:
http://localhost:2246\r\n\r\n"
2> received:[0,104,101,108,108,111,32,102,114,111,109,32,116,104,101,32,98,114,
          111,119,115,101,114,255]

Colm


More information about the erlang-questions mailing list