<div dir="ltr"><div>I had gotten the answer in #erlang chat but missed it. It is depressingly simple, it is not implemented yet. :-(<br><br></div>Robert<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 13 August 2014 14:57, Robert Virding <span dir="ltr"><<a href="mailto:rvirding@gmail.com" target="_blank">rvirding@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div>I am having problems trying to open a websocket with gun <a href="https://github.com/extend/gun" target="_blank">https://github.com/extend/gun</a>. So I have been trying:<br><br></div>
{ok,Pid} = gun:open("10.0.1.86", 8080, [{type,tcp}]),<br>
</div>gun:ws_upgrade(Pid, "/content/chats/connect/"),<br><br></div>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 <a href="http://www.websocket.org/echo.html" target="_blank">http://www.websocket.org/echo.html</a> and opening ws://<a href="http://10.0.1.86:8080/content/chats/connect" target="_blank">10.0.1.86:8080/content/chats/connect</a> works fine.<br>
<br></div>Any suggestions?<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Robert<br><br></font></span></div>
</blockquote></div><br></div>