*Ensure RPC_PROTOCOL_SYMBOL is a string
This commit is contained in:
parent
99f988addd
commit
01b4a6517a
|
@ -7,9 +7,7 @@ import crypto from "hypercore-crypto";
|
||||||
import sodium from "sodium-universal";
|
import sodium from "sodium-universal";
|
||||||
import b4a from "b4a";
|
import b4a from "b4a";
|
||||||
import RPC from "@lumeweb/rpc";
|
import RPC from "@lumeweb/rpc";
|
||||||
|
export const RPC_PROTOCOL_SYMBOL = Symbol.for("lumeweb");
|
||||||
const RPC_PROTOCOL_ID = b4a.from("lumeweb");
|
|
||||||
export const RPC_PROTOCOL_SYMBOL = Symbol.for(RPC_PROTOCOL_ID.toString());
|
|
||||||
|
|
||||||
export function isPromise(obj: Promise<any>) {
|
export function isPromise(obj: Promise<any>) {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue