Interface SubscriptionTransport


  • public interface SubscriptionTransport

    ApolloSubscriptionCall is an abstraction for network transport layer that handles connection to the subscription server. All updates related to the subscription pushed from the server will be delivered via SubscriptionTransport.Callback

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void connect()
      Opens connection to the subscription server
      void disconnect​(com.apollographql.apollo.subscription.OperationClientMessage message)
      Disconnects from the subscription server.
      void send​(com.apollographql.apollo.subscription.OperationClientMessage message)
      Sends OperationClientMessage message to the subscription server.
    • Method Detail

      • connect

        void connect()
        Opens connection to the subscription server
      • disconnect

        void disconnect​(com.apollographql.apollo.subscription.OperationClientMessage message)
        Disconnects from the subscription server.
        Parameters:
        message - to be sent as terminal event.
      • send

        void send​(com.apollographql.apollo.subscription.OperationClientMessage message)
        Sends OperationClientMessage message to the subscription server.
        Parameters:
        message - to be sent to the server