Package com.microsoft.playwright
Interface WebSocketFrame
-
public interface WebSocketFrameTheWebSocketFrameclass represents frames sent overWebSocketconnections in the page. Frame payload is returned by eitherWebSocketFrame.text()orWebSocketFrame.binary()method depending on the its type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]binary()Returns binary payload.Stringtext()Returns text payload.
-
-
-
Method Detail
-
binary
byte[] binary()
Returns binary payload.- Since:
- v1.9
-
text
String text()
Returns text payload.- Since:
- v1.9
-
-