@roomy-chat/sdk
    Preparing search index...

    Class HasPeer

    Parent class for all types that hold a Peer instance.

    Usually you will not need to use this directly.

    Hierarchy (View Summary)

    Index

    General

    Advanced

    General

    • 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 EntityWrapper on all entity types, and it doesn't matter which type you call create() on, they are all equivalent.

      Type Parameters

      Parameters

      Returns Promise<T>

    Advanced

    peer: Peer

    The leaf peer instance.