receivePendingMessage

Reads one message if one has started to arrive, and returns null rather than wait for one that has not.

For a transfer that writes without reading, where the server speaks only to end it. Notices and notifications are taken care of by the read itself, and a FATAL raises from inside it.

Throws

if the server ended the session.