Skip to main content

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.


Methods

binary

Added in: v1.9 webSocketFrame.binary

Returns binary payload.

Usage

WebSocketFrame.binary();

Returns


text

Added in: v1.9 webSocketFrame.text

Returns text payload.

Usage

WebSocketFrame.text();

Returns