<div dir="ltr">I got same problem. Have any news about this issue?<br>Nothing happens after getting message through loop/1 in gun.erl when matching this clause:<br><br>







<p>          {ws_<span class="">upgrade</span>, Owner, Path, Headers} <span class="">when</span> Protocol <span class="">=/=</span> gun_spdy <span class="">-></span></p>








<p class="">            <span class="">%% </span><span class="">@todo<br><br>            io:format("we are ws_upgrade clause",[]),</span></p>
<p class="">            ProtoState2 <span class="">=</span> <span class="">Protocol:ws_</span><span class="">upgrade</span>(ProtoState,</p>
<p class="">                Path, Headers),</p>
<p class="">            <span class="">io:format</span>(<span class="">"going to loop with ProtoState2~n"</span>,[ProtoState2]),</p>
<p class="">            ws_loop(State#state{protocol<span class="">=</span>gun_ws, protocol_state<span class="">=</span>ProtoState2});</p>







<div class="gmail_extra"><br><br><span class="">io:format</span>(<span class="">"going to loop with ProtoState2~n"</span>,[ProtoState2]) never happens. <br><br><br><div class="gmail_quote">On 14 August 2014 05:20, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>I had gotten the answer in #erlang chat but missed it. It is depressingly simple, it is not implemented yet. :-(<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">Robert<br><br></font></span></div><div><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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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><font color="#888888"><br><br></font></span></div><span><font color="#888888">Robert<br><br></font></span></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions<br clear="all"><div><br></div>-- <br></a></blockquote></div></div></div>