Interface SubscriptionClient

  • All Known Implementing Classes:
    SubscriptionClientReactiveImpl

    public interface SubscriptionClient
    This interface allows the application to interact with the subscription, once it has subscribed to it. The currently only available action is unsubscribe().
    This instance also allows to retrieve the WebSocketSession that is connected, if the application needs to interact with it.
    Author:
    etienne-sf
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.springframework.web.reactive.socket.WebSocketSession getSession()
      Allow to retrieve the WebSocketSession, when the implementation is based on Spring Reactive, which is the default since release 1.12
      void unsubscribe()
      Allows the client application to unsubscribe from a previously subscribed subscription.
    • Method Detail

      • getSession

        org.springframework.web.reactive.socket.WebSocketSession getSession()
        Allow to retrieve the WebSocketSession, when the implementation is based on Spring Reactive, which is the default since release 1.12
        Returns:
        The WebSocketSession, if the Spring reactive implementation is used. Or null otherwise