readMessage

Returns a handshake message payload only if this is appropriate given the pattern and state.