# Sandbox.WebSocket.Dispose

```csharp
void Dispose()
```

Cleans up resources used by the WebSocket client. This will also immediately close the connection if it is currently open.

Declared in [Sandbox.WebSocket](/api/Sandbox.WebSocket).
Assembly: `Sandbox.Engine`.
