Processing Network Client.available();

Another related post:
https://discourse.processing.org/t/sending-a-processing-array-from-one-computer-to-other-computers/20366/5

It may be of interest to those using the network library.

:)