You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OkSocket receiving data need a specific format, and the library provides the interface for modifying the reading protocol. See Receiving Protocol
//...After the parsing header is properly set...@OverridepublicvoidonSocketReadResponse(ConnectionInfoinfo, Stringaction, OriginalDatadata) {
//Follow the above rules, this callback can be normal received the data returned from the server, //the data in the OriginalData, for byte [] array, //the array data already processed byte sequence problem, //can be used in the ByteBuffer directly
}
OriginalData The data returned by the server is automatically split into packet headers and payloads.