<div dir="ltr">Thanks, trying to get sockjs working with the latest version of cowboy.  Will give this a shot.<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 11, 2013 at 9:55 AM, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 01/11/2013 03:49 PM, AD wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i have the latest master checkout of cowboy and it looks like<br>
cowboy_req:transport/1 went missing.  The in code docs reference it<br>
exists but its not defined.  Any thoughts ?<br>
<br>
%% Exceptions include <em>chunk/2</em> which always returns <em>'ok'</em>,<br>
<br>
%% <em>to_list/1</em> which returns a list of key/values,<br>
<br>
%% and <em>transport/1</em> which returns <em>{ok, Transport, Socket}</em>.<br>
</blockquote>
<br></div></div>
Forgot to remove that from the docs!<br>
<br>
Use:<br>
<br>
[Socket, Transport] = cowboy_req:get([socket, transport], Req)<br>
<br>
if you need it.<br>
<br>
If you are using response streaming, you don't need it anymore as the Socket and Transport are now passed to the fun.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Loďc Hoguin<br>
Erlang Cowboy<br>
Nine Nines<br>
<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a><br>
</font></span></blockquote></div><br></div>