masterzen/winrm already implements the bits for negotiating the connection and sending/receiving wsman/soap messages, but the problem is that it doesn't expose any methods for sending/receiving raw messages.
This PR exposes the *winrm.Client's sendMessage function as SendMessage which should be enough to implement any custom functionality on top of the opened connection.
I've been half-fantasizing about writing a PowerShell Remoting Protocol client after glancing the spec at learn.microsoft.com, Python's pypsrp, the PSRP-enabled Ruby winrm gem, PowerShell source and the article A look under the hood at Powershell Remoting through a cross plaform lens.
masterzen/winrm
already implements the bits for negotiating the connection and sending/receiving wsman/soap messages, but the problem is that it doesn't expose any methods for sending/receiving raw messages.This PR exposes the
*winrm.Client
'ssendMessage
function asSendMessage
which should be enough to implement any custom functionality on top of the opened connection.