*add dist
This commit is contained in:
parent
f0012ae8cb
commit
201d4fe91c
|
@ -0,0 +1,5 @@
|
|||
import ProtomuxRPC from "protomux-rpc";
|
||||
export default class RPC extends ProtomuxRPC {
|
||||
constructor(stream: any, options?: {});
|
||||
}
|
||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,cAAc,CAAA;AAOtC,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,WAAW;gBAC5B,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK;CASxC"}
|
|
@ -0,0 +1,17 @@
|
|||
// @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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue