Observation

public struct Observation

An object that allows the user to control socket observations.

You receive an object of this class when you observe some data. You may use this object to close the observation when you are done. The observation will automatically be closed when the app terminates, and the socket will be temporarily suspended when the app goes into the background.

  • A function to cancel an observation

    Declaration

    Swift

    public let stop: () -> Void
  • id

    An identifier of the observation

    Declaration

    Swift

    public let id: String