setBatchingAllowed

Enable or disable the batching of outgoing messages for this endpoint. If
batching is disabled when it was previously enabled then this method will
block until any currently batched messages have been written.

sendPing

Send a ping message blocking until the message has been sent. Note that
if a message is in the process of being sent asynchronously, this method
will block until that message and this ping has been sent.

sendPong

Send a pong message blocking until the message has been sent. Note that
if a message is in the process of being sent asynchronously, this method
will block until that message and this pong has been sent.