*Ensure RPC_PROTOCOL_SYMBOL is a string

This commit is contained in:
Derrick Hammer 2023-03-19 11:10:41 -04:00
parent 99f988addd
commit 01b4a6517a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 3 deletions

View File

@ -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 (