rpc/dist/index.js

18 lines
420 B
JavaScript
Raw Normal View History

2022-11-14 16:09:45 +00:00
// @ts-ignore
import ProtomuxRPC from "protomux-rpc";
// @ts-ignore
import c from "compact-encoding";
import b4a from "b4a";
const ID = b4a.from("lumeweb");
export default class RPC extends ProtomuxRPC {
constructor(stream, options = {}) {
options = {
...{
id: ID,
valueEncoding: c.json
}, ...options
};
super(stream, options);
}
}