docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IChannelTokenProvider

    Must be implemented by the CreateChannel(IChannelTokenProvider) caller. This object responsibility is to provide an async method that returns a ChannelToken structure.

    Namespace: Unity.Services.Wire.Internal
    Assembly: Unity.Services.Core.Internal.dll
    Syntax
    public interface IChannelTokenProvider

    Methods

    GetTokenAsync()

    This async method should implement whetever network transaction necessary to retrieve a token enabling a Wire subscription. This function can be called by the Wire SDK multiple times during the lifetime of the subscription. For example, whenever the token needs to be refreshed.

    Declaration
    Task<ChannelToken> GetTokenAsync()
    Returns
    Type Description
    Task<ChannelToken>

    A ChannelToken structure to be used at subscription time.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)