[erlang-questions] BERT encoding and WebSocket

Ngoc Dao <>
Tue Apr 10 08:10:21 CEST 2012

Thanks for sharing your experience.

I thought BERT would help saving some bandwidth, but the outputs at
seem to say that BERT does not help saving much.

On Tue, Apr 10, 2012 at 2:40 PM, dmitry kolesnikov
<> wrote:
> Hello,
> I would not recommend to use BERT to integrate erlang FE with
> JavaScript app. Yes, it works perfectly... But we had so much pain
> with it on JS side. Eventually, we started to use base64 due to some
> browser behavior... Another Major issue was to maintain interface
> compatibility...
> We rolled back to JSON. I would recommend jsx library on erlang, it is
> fast and light.
> Best Regards,
> Dmitry >-|-|-*>
> On 10.4.2012, at 5.26, ngocdaothanh <> wrote:
>> What is the best way to use BERT encoding (http://bert-rpc.org/) with
>> WebSocket?
>> BERT is binary but WebSocket does not support binary at this moment.
>> Should I use base64 to encode BERT binary to normal string? Base64 has
>> 33% overhead (http://en.wikipedia.org/wiki/Base64). How much space can
>> BERT save compared to JSON?
>> _______________________________________________
>> erlang-questions mailing list
>> http://erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list