Class WebSocketTransport

java.lang.Object
io.ably.lib.transport.WebSocketTransport
All Implemented Interfaces:
ITransport

public class WebSocketTransport extends Object implements ITransport
  • Constructor Details

  • Method Details

    • connect

      public void connect(ITransport.ConnectListener connectListener)
      ITransport methods
      Specified by:
      connect in interface ITransport
    • close

      public void close()
      Description copied from interface: ITransport
      Close this transport.
      Specified by:
      close in interface ITransport
    • receive

      public void receive(ProtocolMessage msg) throws AblyException
      Specified by:
      receive in interface ITransport
      Throws:
      AblyException
    • send

      public void send(ProtocolMessage msg) throws AblyException
      Description copied from interface: ITransport
      Send a message on the channel
      Specified by:
      send in interface ITransport
      Throws:
      AblyException
    • getHost

      public String getHost()
      Specified by:
      getHost in interface ITransport
    • preProcessReceivedMessage

      protected void preProcessReceivedMessage(ProtocolMessage message)
    • turnOffActivityCheckIfPingListenerIsNotSupported

      protected void turnOffActivityCheckIfPingListenerIsNotSupported()
      Visible For Testing We need to turn off activity check for some tests (e.g. io.ably.lib.test.realtime.RealtimeConnectFailTest.disconnect_retry_channel_timeout_jitter_after_consistent_detach[binary_protocol]) Those tests expects that activity checks are passing, but protocol messages are not coming
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getURL

      public String getURL()
      Description copied from interface: ITransport
      Get connection URL
      Specified by:
      getURL in interface ITransport
      Returns: