Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
binaryFrameshared WebSocketFrame binaryFrame(Buffer data, Boolean isFinal)

Create a binary WebSocket frame.

Parameters:
  • data

    the data for the frame

  • isFinal

    true if it's the final frame in the WebSocket message

continuationFrameshared WebSocketFrame continuationFrame(Buffer data, Boolean isFinal)

Create a continuation frame

Parameters:
  • data

    the data for the frame

  • isFinal

    true if it's the final frame in the WebSocket message

pingFrameshared WebSocketFrame pingFrame(Buffer data)

Create a ping WebSocket frame. Will be a final frame. There is no option for non final ping frames.

Parameters:
  • data

    the bytes for the frame, may be at most 125 bytes

pongFrameshared WebSocketFrame pongFrame(Buffer data)

Create a pong WebSocket frame. Will be a final frame. There is no option for non final pong frames.

Parameters:
  • data

    the bytes for the frame, may be at most 125 bytes

textFrameshared WebSocketFrame textFrame(String str, Boolean isFinal)

Create a text WebSocket frame.

Parameters:
  • str

    the string for the frame

  • isFinal

    true if it's the final frame in the WebSocket message

Inherited Methods
Methods inherited from: Object
equals