# Sandbox.WebSocket.EnableCompression

```csharp
bool EnableCompression { get; set; }
```

Enable or disable compression for the websocket. If the server supports it, compression will be enabled for all messages.
Note: compression is disabled by default, and can be dangerous if you are sending secrets across the network.

Declared in [Sandbox.WebSocket](/api/Sandbox.WebSocket).
Assembly: `Sandbox.Engine`.
