Class WebSocketFrame

java.lang.Object
net.targetr.wtm3.net.http.websocket.WebSocketFrame

public class WebSocketFrame extends Object
A single data frame sent over a WebSocket.
Author:
Dr Michael Gardiner
  • Field Details

    • buffers

      public ReusableBufferList buffers
      The payload data as a multiple reusable buffers.
  • Constructor Details

    • WebSocketFrame

      public WebSocketFrame()
      Constructs a new WebSocketFrame.
  • Method Details

    • setData

      public void setData(byte[] data)
      Sets the data payload for this frame.
      Parameters:
      data - the raw data to set