WCF-Xtensions Class Reference for Mono
PayloadMasking Property (WebSocketTransportBindingElement)






Gets and sets whether the payload of outbound messages is masked.
Syntax
'Declaration
 
Public Property PayloadMasking As System.Boolean
'Usage
 
Dim instance As WebSocketTransportBindingElement
Dim value As System.Boolean
 
instance.PayloadMasking = value
 
value = instance.PayloadMasking
public System.bool PayloadMasking {get; set;}
public read-write property PayloadMasking: System.Boolean; 
public function get,set PayloadMasking : System.boolean
public: __property System.bool get_PayloadMasking();
public: __property void set_PayloadMasking( 
   System.bool value
);
public:
property System.bool PayloadMasking {
   System.bool get();
   void set (    System.bool value);
}

Property Value

If set to true payload masking is enabled; false otherwise. Default value is true.
Remarks

By default all messages from the client to the server are masked, while all messages from the server to the client are not masked, as required by the WebSocket protocol specification.

You can disable or enable masking by setting this property, but strict WebSocket implementations will drop the connection if masking requirements are not followed.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WebSocketTransportBindingElement Class
WebSocketTransportBindingElement Members

Send Feedback