@skyway-sdk/core
    Preparing search index...

    Interface SkyWayContextInterface

    interface SkyWayContextInterface {
        appId: string;
        authTokenString: string;
        config: SkyWayContextConfig;
        disposed: boolean;
        onDisposed: EventInterface<void>;
        onFatalError: EventInterface<SkyWayErrorInterface>;
        onTokenExpired: EventInterface<void>;
        onTokenUpdated: EventInterface<string>;
        onTokenUpdateReminder: EventInterface<void>;
        dispose(): void;
        registerPlugin(plugin: SkyWayPluginInterface): void;
        updateAuthToken(token: string): Promise<void>;
    }

    Implemented by

    Index
    appId: string

    [japanese] SkyWayのアプリケーションID

    authTokenString: string

    [japanese] トークンのエンコード済み文字列

    [japanese] コンテキストの設定

    disposed: boolean

    [japanese] コンテキストが破棄済みかどうかを示すフラグ

    onDisposed: EventInterface<void>

    [japanese] コンテキストが破棄されたことを通知するイベント

    [japanese] 回復不能なエラーが発生したことを通知するイベント。インターネット接続状況を確認した上で別のインスタンスを作り直す必要がある

    onTokenExpired: EventInterface<void>

    [japanese] トークンの期限切れを通知するイベント。このイベントが発火された場合、トークンを更新するまでサービスを利用できない

    onTokenUpdated: EventInterface<string>

    [japanese] トークンが更新されたことを通知するイベント

    onTokenUpdateReminder: EventInterface<void>

    [japanese] トークンの期限がまもなく切れることを通知するイベント

    • Returns void

      [japanese] コンテキストの利用を終了し次のリソースを解放する

      • イベントリスナー
      • バックエンドサーバとの通信
      • コンテキストを参照する全Channelインスタンス
    • Parameters

      • token: string

      Returns Promise<void>

      [japanese] トークンの更新