<div dir="ltr">Is it refactored bert.js from Nitrogen?<div>Files seem to have common lines: <a href="https://github.com/nitrogen/nitrogen_core/blob/master/www/bert.js">https://github.com/nitrogen/nitrogen_core/blob/master/www/bert.js</a><br>

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/16 Serge Aleynikov <span dir="ltr"><<a href="mailto:serge@aleynikov.org" target="_blank">serge@aleynikov.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Since websockets nowadays support binary data, I implemented binary Erlang External Term serialization, so that term_to_binary(Term) can be decoded into Javascript objects and vice versa.</div>


<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I'd like to share this example that illustrates the experiment:</div>


<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><a href="https://github.com/saleyn/erws_example" target="_blank">https://github.com/saleyn/erws_example</a><br>


</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">The Javascript file (used by the example above) with encoding/decoding logic:</div>


<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><a href="https://github.com/saleyn/erlb.js" target="_blank">https://github.com/saleyn/erlb.js</a><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">


(this is an early beta version)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">This is a more-or-less belated answer to the question raised by Joe in this thread:<br>


<a href="http://erlang.org/pipermail/erlang-questions/2011-November/062477.html" target="_blank">http://erlang.org/pipermail/erlang-questions/2011-November/062477.html</a><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">


<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">


Serge</div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'courier new', monospace">---------------------------------------------</font><div><font face="'courier new', monospace">Данил Загоскин | +7 906 064 20 47 | <a href="mailto:z@gosk.in" target="_blank">z@gosk.in</a></font></div>


</div>