WebSocket client API
Andrej Golovnin
andrej.golovnin at gmail.com
Fri Sep 4 11:14:28 UTC 2015
Hi Chris,
>>> Will adding the ability to send ping(ByteBuffer) be sufficient for your usage? If so, then I think we should add it, but not pong. The implementation will automatically send a pong message in response to receiving a ping. OK?
>>
>> Yes, ping(ByteBuffer) is sufficient for us.
>
> I assume you will also need a way to distinguish that the incoming data is from a pong message, in response to your ping, right?
I'm not sure what you mean. If you mean, that we need to distinguish
it in the method WebSocket.Incoming.onBinary(WebSocket, ByteBuffer),
then no. I expect that this method is only used to process binary
message. For pong messages I would expect a new method:
WebSocket.Incoming.onPong(WebSocket, ByteBuffer). Currently we don't
process the pong messages on the client. And there are no plans to do
it in the near future.
Best regards,
Andrej Golovnin
More information about the net-dev
mailing list