*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 b4a from "b4a";
|
||||
import RPC from "@lumeweb/rpc";
|
||||
|
||||
const RPC_PROTOCOL_ID = b4a.from("lumeweb");
|
||||
export const RPC_PROTOCOL_SYMBOL = Symbol.for(RPC_PROTOCOL_ID.toString());
|
||||
export const RPC_PROTOCOL_SYMBOL = Symbol.for("lumeweb");
|
||||
|
||||
export function isPromise(obj: Promise<any>) {
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue