NodeScope

public protocol NodeScope : class

Facilitates the creation and management of downlinks to a single service instance.

  • The URI of the network endpoint to which the scope is bound.

    Declaration

    Swift

    var hostUri: <<error type>> { get }
  • The URI of the service to which the scope is bound. An absolute URI resolved against hostUri.

    Declaration

    Swift

    var nodeUri: <<error type>> { get }
  •    let chat = client.scope(node: "ws://swim.example.com/chat/public")
       let chatRoom = chat.scope(lane: "chat/room")
    

    Declaration

    Swift

    func scope(lane lane: SwimUri) -> <<error type>>

    Return Value

    A new LaneScope bound to the given lane URI of the service to which this scope is bound.

  • Unlinks all downlinks registered with the scope.

    Declaration

    Swift

    func close()