SwimClient

Undocumented

  • Undocumented

  • Undocumented

  • Undocumented

  • Undocumented

  • let chat = client.scope(node: "/chat/public")
    

    Declaration

    Swift

    @warn_unused_result
    public func scope(node node: SwimUri) -> <<error type>>

    Parameters

    node

    The destination service.

    Return Value

    A new NodeScope bound to the service at the given node running on self.hostUri.

  •    let chatRoom = client.scope(node: "/chat/public", lane: "chat/room")
    

    Declaration

    Swift

    @warn_unused_result
    public func scope(node node: SwimUri, lane: SwimUri) -> <<error type>>

    Parameters

    node

    The destination service. Must contain a network authority component, as this specifies the destination host.

    lane

    The destination lane in the service at the given node.

    Return Value

    A new LaneScope bound to the given lane.

  • Authorizes all connections through this client with the provided recon credentials value.

       client.auth(credentials: Value(Slot("googleIdToken", "")))
    

    Declaration

    Swift

    @warn_unused_result
    public func auth(credentials credentials: SwimValue) -> <<error type>>

    Parameters

    credentials

    Might contain, for example, a .

  • Unlinks all downlinks and closes the network connection associated with this client.

    Declaration

    Swift

    public func close()
  • Call this function from your AppDelegate.

    Declaration

    Swift

    public class func applicationDidBecomeActive()
  • Call this function from your AppDelegate.

    Declaration

    Swift

    public class func applicationWillResignActive()
  • Call this function from your AppDelegate.

    Declaration

    Swift

    public class func applicationPerformFetchWithCompletionHandler(completionHandler: UIBackgroundFetchResult -> Void) -> <<error type>>