Skip to content

Commit 176a743

Browse files
committed
add hook onUnknownMessage to catch unknown event
1 parent 23869ee commit 176a743

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ const SQLiteOnSteroid = (db, myPeerId = null, options) => {
708708
_onRequestForMissingPatchFromPeers(msg);
709709
break;
710710
default:
711-
console.warn('Unknown message type', msg.type);
711+
options?.onUnknownMessage?.(msg);
712712
break;
713713
}
714714
}

0 commit comments

Comments
 (0)