3.1.5.4.1.2 Receiving from the Server

The client MUST receive this message once per the RunspacePool from the server. The RunspacePool MUST be in NegotiationSent state when this message is received. The client processes the message and validates the actual data received from the server with the expected data given in the following table.

Name

Expected value

protocolversion

2.1 or 2.2.

PSVersion

2.0

SerializationVersion

1.1.0.1

If expected versions are received from the server, the client MUST change the RunspacePool state to NegotiationSucceeded (section 3.1.1.2.2). If the server protocolversion is 2.1 or 2.2, the client SHOULD also change the RunspacePool state to NegotiationSucceeded, but the client MAY also change the state to Broken in this situation. In all other cases, the client MUST change the RunspacePool state to Broken.