From 01b4a6517a9f1cdf752a1fa28a62009bdad0e508 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 19 Mar 2023 11:10:41 -0400 Subject: [PATCH] *Ensure RPC_PROTOCOL_SYMBOL is a string --- src/util.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/util.ts b/src/util.ts index 2c4acf6..3022f9d 100644 --- a/src/util.ts +++ b/src/util.ts @@ -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) { return (