Class FayeClient


  • public class FayeClient
    extends okhttp3.WebSocketListener
    • Constructor Detail

      • FayeClient

        public FayeClient​(java.net.URL baseURL)
    • Method Detail

      • setMessageTransformer

        public void setMessageTransformer​(MessageTransformer messageTransformer)
      • setStateChangeListener

        public void setStateChangeListener​(StateChangeListener stateChangeListener)
      • onMessage

        public void onMessage​(okhttp3.WebSocket webSocket,
                              java.lang.String text)
        Overrides:
        onMessage in class okhttp3.WebSocketListener
      • onFailure

        public void onFailure​(okhttp3.WebSocket webSocket,
                              java.lang.Throwable t,
                              okhttp3.Response response)
        Overrides:
        onFailure in class okhttp3.WebSocketListener
      • onClosed

        public void onClosed​(okhttp3.WebSocket webSocket,
                             int code,
                             java.lang.String reason)
        Overrides:
        onClosed in class okhttp3.WebSocketListener
      • handshake

        public void handshake()
      • connect

        public void connect()
      • disconnect

        public java.util.concurrent.CompletableFuture<java.lang.Void> disconnect()
      • unsubscribe

        public void unsubscribe​(java.lang.String channel,
                                ChannelSubscription channelSubscription)
      • publish

        public java.util.concurrent.CompletableFuture<java.lang.Void> publish​(java.lang.String channel,
                                                                              java.util.Map<java.lang.String,​java.lang.Object> data)