Interface WebSocketFrame

All Known Implementing Classes:
WebSocketImpl.WebSocketFrameImpl

public interface WebSocketFrame
The WebSocketFrame class represents frames sent over WebSocket connections in the page. Frame payload is returned by either WebSocketFrame.text() or WebSocketFrame.binary() method depending on the its type.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns binary payload.
    Returns text payload.
  • Method Details

    • binary

      byte[] binary()
      Returns binary payload.
      Since:
      v1.9
    • text

      String text()
      Returns text payload.
      Since:
      v1.9