TakahikoKawasaki / nv-websocket-client

High-quality WebSocket client implementation in Java.
Apache License 2.0
2.03k stars 292 forks source link

How to identify frame in onFrameSent and onSendError callbacks? #123

Open perqin opened 7 years ago

perqin commented 7 years ago

I would like to wrap sendXXX with a callback indicating whether that frame is sent successfully, but I don't know how to do this properly. Comparing the reference of the frame in the callback and that I sent may fail, as the frame may be split.

ljnalex commented 7 years ago

I have the same problem,A write on a Socket is blocked,but the timeout of tcp is a long time