[erlang-questions] web sockets almost working ....
Antoine Koener
antoine.koener@REDACTED
Thu Dec 10 13:13:30 CET 2009
Hi Joe,
io:format("received:~p~n",[Data]),
> Msg = prefix() ++
> "WebSocket-Origin: http://localhost:2246\r\n" ++
> "WebSocket-Location: ws://localhost:1234\r\n\r\n",
> gen_tcp:send(Socket, Msg),
>
>
May be use a full URL instead of
"WebSocket-Location: ws://localhost:1234\r\n\r\n",
i.e.
"WebSocket-Location:
ws://localhost:1234/path/to/your/script\r\n\r\n",
?
I can't test at the moment
my christmas cents...
More information about the erlang-questions
mailing list