diff --git a/packages/automerge-repo-network-websocket/src/BrowserWebSocketClientAdapter.ts b/packages/automerge-repo-network-websocket/src/BrowserWebSocketClientAdapter.ts index 45e3b3589..b099ab435 100644 --- a/packages/automerge-repo-network-websocket/src/BrowserWebSocketClientAdapter.ts +++ b/packages/automerge-repo-network-websocket/src/BrowserWebSocketClientAdapter.ts @@ -9,7 +9,6 @@ import { JoinMessage, } from "./messages.js" import { ProtocolV1 } from "./protocolVersion.js" -import { isValidRepoMessage } from "@automerge/automerge-repo" const log = debug("WebsocketClient") @@ -170,9 +169,6 @@ export class BrowserWebSocketClientAdapter extends WebSocketNetworkAdapter { log(`error: ${decoded.message}`) break default: - if (!isValidRepoMessage(decoded)) { - throw new Error("Invalid message received") - } this.emit("message", decoded) } }