# Sandbox.Component.INetworkListener.OnConnected

```csharp
void OnConnected(Connection channel)
```

Called when someone joins the server. This will only be called for the host.

### Parameters

- `channel` (`Connection`)

Declared in [Sandbox.Component.INetworkListener](/api/Sandbox.Component.INetworkListener).
Assembly: `Sandbox.Engine`.
