[erlang-questions] BERT encoding and WebSocket

dmitry kolesnikov <>
Tue Apr 10 07:40:40 CEST 2012


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