I have a BERT-RPC client and server implementation for node.js
<
http://nodejs.org>, the V8-based evented IO framework for JavaScript:
http://github.com/rtomayko/node-bertrpc/
It includes an async server and client (bertrpc.js) as well as BERT
encoding/decoding/repr functions (bert.js). The encode piece is based
heavily on Rusty Klophaus's BERT-JS project:
<
http://github.com/rklophaus/BERT-JS>.
Here's a BERT <=> JavaScript type conversation table:
http://github.com/rtomayko/node-bertrpc/blob/master/src/bert.js#L18-35
This is a work in progress. Some notable things yet to be completed:
- Time and regex types not yet supported by the encoder/decoder.
- None of the error stuff has been implemented (client or server).
- No support for cast / no-reply yet (client or server).
- No support for BERT-RPC info packets.
- The client API needs to be made more node-like (events, promises, etc.)
Ryan
--
#
tomayko.com/about