Interface PluginConnectionAdapter

All Known Implementing Classes:
ConnectionManager

public interface PluginConnectionAdapter
The PluginConnectionAdapter interface defines a contract for managing real-time communication between plugins and the Ably Realtime system. Implementations of this interface are responsible for sending protocol messages to their intended recipients, optionally queuing events, and notifying listeners of the operation's outcome.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sends a protocol message to its intended recipient.
  • Method Details

    • send

      void send(ProtocolMessage msg, CompletionListener listener) throws AblyException
      Sends a protocol message to its intended recipient. This method transmits a protocol message, allowing for queuing events if necessary, and notifies the provided listener upon the success or failure of the send operation.
      Parameters:
      msg - the protocol message to send.
      listener - a listener to be notified of the success or failure of the send operation.
      Throws:
      AblyException - if an error occurs during the send operation.