Looks like System.Net.WebSockets.ManagedWebSocket.WriteFrameToSendBuffer fails to actually write the payload if _isServer is set. It copies the payload into the send buffer in the same if-branch that handles masking (which is client-only 😄).
Discovered and fixed this while porting code to ASP.NET, so I'm going to port the fix over to corefx and open a PR.
/cc @stephentoub @Tratcher
Looks like
System.Net.WebSockets.ManagedWebSocket.WriteFrameToSendBufferfails to actually write the payload if_isServeris set. It copies the payload into the send buffer in the same if-branch that handles masking (which is client-only 😄).Discovered and fixed this while porting code to ASP.NET, so I'm going to port the fix over to corefx and open a PR.
/cc @stephentoub @Tratcher