# Sandbox.Component.INetworkListener.OnBecameHost

```csharp
void OnBecameHost(Connection previousHost)
```

The host left and you are the new host. The scene is already rebuilt from their snapshot;
[Sandbox.Component.INetworkListener.OnDisconnected](/api/Sandbox.Component.INetworkListener/OnDisconnected) for them follows.

### Parameters

- `previousHost` (`Connection`)

Declared in [Sandbox.Component.INetworkListener](/api/Sandbox.Component.INetworkListener).
Assembly: `Sandbox.Engine`.
