3.2.5.3.16 Rules for the wxf:Disconnect Message

A client uses the wxf:Disconnect message to disconnect a RunspacePool on the server as described in section 3.1.5.3.16.

The server attempts to obtain the RunspacePool instance from the RunspacePool table, using the ShellID specified in the message (see section 3.2.1.1.1). If a corresponding RunspacePool instance is not found, the server MUST send a wxf:Fault message.

If a corresponding RunspacePool instance is found, the server disconnects the RunspacePool (as specified in section 3.2.1.2.2) and sends a wxf:DisconnectResponse message (as specified in section 3.2.5.3.17). The server can later be reconnected to using the wxf:Reconnect message. After it is disconnected, the server rejects all requests related to that RunspacePool until it is reconnected.