call processData immediately after handshake to handle any data that is already in the buffer