[erlang-questions] Gun and websockets

Robert Virding rvirding@REDACTED
Wed Aug 13 23:57:05 CEST 2014

I am having problems trying to open a websocket with gun
https://github.com/extend/gun. So I have been trying:

{ok,Pid} = gun:open("", 8080, [{type,tcp}]),
gun:ws_upgrade(Pid, "/content/chats/connect/"),

and nothing happens, it just times out. Checking, the process Pid started
by gun:open dies with an undef error but I don't see which function it is
trying to call. Using http://www.websocket.org/echo.html and opening ws:// works fine.

Any suggestions?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140813/b2cd0c8e/attachment.htm>

More information about the erlang-questions mailing list