public interface Data
Data
interface represents a payload for a WebScoket
frame. It can hold either binary data or text data. For performance
binary frames are a better choice as all text frames need to be
encoded as UTF-8 from the native UCS2 format.DataFrame
Modifier and Type | Method and Description |
---|---|
byte[] |
getBinary()
This returns the binary payload that is to be sent with a frame.
|
String |
getText()
This returns the text payload that is to be sent with a frame.
|
byte[] getBinary()
String getText()
Copyright © 2022. All rights reserved.