The OpenD Programming Language

WebSocket.isDataPending

Is data pending on the socket? Also check isMessageBuffered to see if there is already a message in memory too.

If this returns true, you can call lowLevelReceive, then try isMessageBuffered again.

class WebSocket
bool
isDataPending
(
Duration timeout = 0.seconds
)

See Also

Meta