Interface WSTransport.WSTransportSink

Enclosing interface:
WSTransport

public static interface WSTransport.WSTransportSink
WS Transport output sink, used to give the WS Transport implementation a way to produce output back to the WS connection without coupling it to the implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called from the Transport when new outgoing String data is ready.
    void
    Called from the Transport when new outgoing String data is ready.
  • Method Details

    • onSocketOutboundText

      void onSocketOutboundText(String data) throws IOException
      Called from the Transport when new outgoing String data is ready.
      Parameters:
      data - The newly prepared outgoing string data.
      Throws:
      IOException - if an error occurs or the socket doesn't support text data.
    • onSocketOutboundBinary

      void onSocketOutboundBinary(ByteBuffer data) throws IOException
      Called from the Transport when new outgoing String data is ready.
      Parameters:
      data - The newly prepared outgoing string data.
      Throws:
      IOException - if an error occurs or the socket doesn't support text data.