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
nodeThe destination service.
Return Value
A new
NodeScopebound to the service at the givennoderunning onself.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
nodeThe destination service. Must contain a network authority component, as this specifies the destination host.
laneThe destination lane in the service at the given
node.Return Value
A new
LaneScopebound to the givenlane. -
Authorizes all connections through this client with the provided recon
credentialsvalue.client.auth(credentials: Value(Slot("googleIdToken", "")))Declaration
Swift
@warn_unused_result public func auth(credentials credentials: SwimValue) -> <<error type>>Parameters
credentialsMight 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>>
-
Undocumented
SwimClient Class Reference