These are the events that this DocHandle emits to external listeners

interface DocHandleEvents<T> {
    change: ((payload) => void);
    delete: ((payload) => void);
    ephemeral-message: ((payload) => void);
    ephemeral-message-outbound: ((payload) => void);
    heads-changed: ((payload) => void);
    remote-heads: ((payload) => void);
    unavailable: ((payload) => void);
}

Type Parameters

  • T

Properties

change: ((payload) => void)

Type declaration

delete: ((payload) => void)

Type declaration

ephemeral-message: ((payload) => void)

Type declaration

ephemeral-message-outbound: ((payload) => void)

Type declaration

heads-changed: ((payload) => void)

Type declaration

remote-heads: ((payload) => void)

Type declaration

unavailable: ((payload) => void)

Type declaration

    • (payload): void
    • Parameters

      • payload: DocHandleUnavailablePayload<T>

      Returns void