Interface RpcMessageEncoder

A RpcMessageEncoder writes RpcMessage objects to a WriteBuffer. Note that it is up to clients to commit the message. This allows for multiple messages being encoded before sending.

interface RpcMessageEncoder {
    cancel(buf, requestId): void;
    notification(buf, method, args, id?): void;
    replyErr(buf, requestId, err): void;
    replyOK(buf, requestId, res): void;
    request(buf, requestId, method, args): void;
}

Implemented by

Methods