<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hello Erlangers!</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Inaka is happy to announce the release of <b>Lasse</b>, a library for implementing Cowboy[1] SSE (Server-Sent Events [2]) handlers.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"> <a href="https://github.com/inaka/lasse/" target="_blank">https://github.com/inaka/lasse/</a></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">SSE is a technology that allows a server to push events to a client using HTTP/1.1 chunked responses. </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">The motivation behind this library is we noticed these type of handlers have a lot in common with each other in terms of their implementation and the type of messages they process. All the details related to establishing a connection and generating events is included in the library, so that the module that implements the <font face="courier new, monospace"><b>lasse_handler</b></font> behavior has to only be concerned with the logic and contents of the events sent.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">There's currently a single toy example under the <b>examples</b> folder: a handler that broadcasts a "pong" to all clients when it receives a <font face="courier new, monospace"><b>ping</b></font> message.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><b>All feedback is extremely welcome. </b></div><div style="font-family:arial,sans-serif;font-size:13px">
<b><br></b></div><div style="font-family:arial,sans-serif;font-size:13px">This is my first library in Erlang, please be kind!</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Thanks,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Juan Facorro</div><div style="font-family:arial,sans-serif;font-size:13px"><a href="mailto:juan.facorro@inakanetworks.com" target="_blank">juan.facorro@inakanetworks.com</a></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">[1]: <a href="https://github.com/extend/cowboy" target="_blank">https://github.com/extend/cowboy</a></div>
<div style="font-family:arial,sans-serif;font-size:13px">[2]: <a href="http://dev.w3.org/html5/eventsource/" target="_blank">http://dev.w3.org/html5/eventsource/</a></div><div><br></div>-- <br>Juan Facorro
</div>