<div class="gmail_quote">On Fri, Jun 8, 2012 at 9:56 AM, Benoit Chesneau <span dir="ltr"><<a href="mailto:bchesneau@gmail.com" target="_blank">bchesneau@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I just released the version 1 of mochicow, a mochiweb adapter for<br>
cowboy. Use your mochiweb code d with cowboy.<br>
<br>
There are 2 ways to use mochicow:<br>
<br>
- as a cowboy protocol: It will use the socket acceptor pool of cowboy<br>
instead of the mochiweb one.<br>
- as a protocol upgrade. Like websockets you can upgrade a cowboy<br>
handler to use a mochiweb loop. It allows you to use both your new<br>
code with cowboy and old code with mochiweb.<br>
<br>
See the examples in the examples for the usage.<br>
<br>
The source is on github:<br>
<br>
<a href="https://github.com/benoitc/mochicow" target="_blank">https://github.com/benoitc/mochicow</a><br>
<br>
Enjoy :)<br></blockquote><div><br></div><div>This is fantastic, I had considered doing this myself but I don't have any legacy code to worry about at the moment :)</div><div><br></div><div>-bob</div><div> </div></div>