Create a new entity of the given type.
This can be used to create a new Entity for any type that implements
EntityWrapper.
const roomy = await Roomy.init(peer, catalogId);
const space = roomy.create(Space);
Note: This method is inherited from
EntityWrapperon all entity types, and it doesn't matter which type you callcreate()on, they are all equivalent.
Open an existing Entity using it's ID.
You provide an EntityWrapper type like Space or Message
that will be wrapped around the entity.
Parent class for all types that hold a
Peerinstance.Usually you will not need to use this directly.