IntdashClientDelegate
public protocol IntdashClientDelegate : NSObjectProtocol
IntdashClient
に追加するDelegateを表すプロトコル。
-
サーバーに接続したときに呼び出されるコールバックです。
Declaration
Swift
func intdashClientDidConnect(_ client: IntdashClient)
Parameters
client
クライアント
-
サーバーから切断されたときに呼び出されるコールバックです。
Declaration
Swift
func intdashClientDidDisconnect(_ client: IntdashClient)
Parameters
client
クライアント
-
クライアントの内部でエラーが発生したときに呼び出されるコールバックです。
Declaration
Swift
func intdashClient(_ client: IntdashClient, didFailWithError error: Error?)
Parameters
client
クライアント
error
エラー情報
-
サーバーに再接続したときに呼び出されるコールバックです。 再接続時には、アップストリーム、ダウンストリームそれぞれの Spec が自動的に送信され、その結果が本コールバックで返されます。
Declaration
Swift
func intdashClient(_ client: IntdashClient, didRetryToRequestSpecs success: Bool)
Parameters
client
クライアント
success
再接続の結果