Client

public class Client: DDPClient

Meteor.Client is a subclass of DDPClient that facilitates interaction with the MeteorCollection class

  • Undocumented

    Declaration

    Swift

    public class Client: DDPClient
  • Calls the documentWasAdded method in the MeteorCollection subclass instance associated with the document collection

    Declaration

    Swift

    public override func documentWasAdded(collection:String, id:String, fields:NSDictionary?)

    Parameters

    collection

    the string name of the collection to which the document belongs

    id

    the string unique id that identifies the document on the server

    fields

    an optional NSDictionary with the documents properties

  • Calls the documentWasChanged method in the MeteorCollection subclass instance associated with the document collection

    Declaration

    Swift

    public override func documentWasChanged(collection:String, id:String, fields:NSDictionary?, cleared:[String]?)

    Parameters

    collection

    the string name of the collection to which the document belongs

    id

    the string unique id that identifies the document on the server

    fields

    an optional NSDictionary with the documents properties

    cleared

    an optional array of string property names to delete

  • Calls the documentWasRemoved method in the MeteorCollection subclass instance associated with the document collection

    Declaration

    Swift

    public override func documentWasRemoved(collection:String, id:String)

    Parameters

    collection

    the string name of the collection to which the document belongs

    id

    the string unique id that identifies the document on the server