Poll the connection to check for incoming bytes. Call this right before StreamPeer.getAvailableBytes for it to work properly.
See Implementation
Poll the connection to check for incoming bytes. Call this right before StreamPeer.getAvailableBytes for it to work properly.