Options
Menu

Class RealTimeUndefined

This is a convenience object that represents the absence of a value. These are not actually part of the model, but can be returned in instances where the requested element does not exist.

More information is in the developer guide.

Hierarchy

Implements

Index

Properties

Events

Events: RealTimeUndefinedEvents = ObservableUndefinedEventConstants

Methods

addListener

events

  • Provides the events emitted by this object as an Observable stream.

    example
    
    eventEmitter.events()
      .filter(e => e.name === "myevent")
      .subscribe(e => console.log(e));
    

    Returns Observable<IConvergenceEvent>

    An Observable stream of all events emitted by this object.

id

  • id(): string

isAttached

  • isAttached(): boolean

isDetached

  • isDetached(): boolean

model

off

on

once

parent

path

reference

  • Returns the remote ModelReference created by the given sessionId with the unique name key, or undefined if no such reference exists.

    See Remote References in the developer guide.

    Parameters

    • sessionId: string

      The session ID that created the reference

    • key: string

      the reference's unique key

    Returns ModelReference

references

  • Returns any remote references that match the given filter. You can provide a single key which could return references from multiple users, sessionId which would return all of a particular user session's references, or both, which is really just the same as using the reference method.

    Parameters

    • referenceFilter: ReferenceFilter

      an object containing either a sessionId, key, or both

    Returns ModelReference[]

    An array of remote ModelReferences, or an empty array if there were no matches.

relativePath

removeAllListeners

removeFromParent

  • removeFromParent(): void

removeListener

removeListeners

toJSON

  • toJSON(): any

type

  • type(): string

value

  • value(): void
  • value(value: void): void