xuuhaoo / OkSocket

An blocking socket client for Android applications.
MIT License
2.58k stars 433 forks source link

如何自定义接收数据类型? #162

Closed tydqcjj closed 4 years ago

tydqcjj commented 4 years ago

OkSocket 接收数据不是框架定义的header+body的类型会报错,请问怎么解决?可以自定义接收类型吗? image

xuuhaoo commented 4 years ago

可以自定义数据类型,你看下本仓库的WIKI中关于如何接收数据的连接 关于如何自定义接收协议

tej-mpc commented 3 years ago

okay. But please share how to send header and share formate or sample of header and payload which accept current code.