process Incoming Packets
Iterates through all the incoming packets over the last cycle and invokes the consumer with the receiver on them. If an exception is caught, it is propagated forward to the respective exception handler. If too many messages were received from the server during the last cycle, the decoder will have stopped accepting any new packets. If that was the case at the end of this function, the packet decoding will resume.
Return
the number of consumers that was invoked, this is handy in case one wishes to manually track the idle status serverside and potentially log the player out earlier if no packets are received over a number of cycles.
Parameters
receiver
the receiver on whom to invoke the message consumers, typically a player instance