Class WebSocketFrame

java.lang.Object
io.webfolder.cdp.type.network.WebSocketFrame

public class WebSocketFrame extends Object
WebSocket message data This represents an entire WebSocket message, not just a fragmented frame as the name suggests
  • Constructor Details

    • WebSocketFrame

      public WebSocketFrame()
  • Method Details

    • getOpcode

      public Double getOpcode()
      WebSocket message opcode.
    • setOpcode

      public void setOpcode(Double opcode)
      WebSocket message opcode.
    • isMask

      public Boolean isMask()
      WebSocket message mask.
    • setMask

      public void setMask(Boolean mask)
      WebSocket message mask.
    • getPayloadData

      public String getPayloadData()
      WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.
    • setPayloadData

      public void setPayloadData(String payloadData)
      WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.