# ConnectionScript (global functions): World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/ConnectionScript

## Functions

### CancelLogout

```lua
CancelLogout()
```

### ForceLogout

```lua
ForceLogout()
```

### ForceQuit

```lua
ForceQuit()
```

### GetNativeRealmID

```lua
nativeRealmID = GetNativeRealmID()
```

Returns:
- `nativeRealmID`: number

### GetNetIpTypes

```lua
ipTypes = GetNetIpTypes()
```

Returns:
- `ipTypes`: ConnectionIptype

### GetNetStats

```lua
in, out, latencyList = GetNetStats()
```

Returns:
- `in`: number
- `out`: number
- `latencyList`: number

### GetProtocolTypes

```lua
protocolTypes = GetProtocolTypes()
```

Returns:
- `protocolTypes`: ConnectionProtocol

### GetRealmID

```lua
realmID = GetRealmID()
```

Returns:
- `realmID`: number

### GetRealmName

```lua
realmName = GetRealmName()
```

Returns:
- `realmName`: cstring

### IsOnTournamentRealm

```lua
result = IsOnTournamentRealm()
```

Returns:
- `result`: bool

### Logout

```lua
Logout()
```

### Quit

```lua
Quit()
```

### SelectedRealmName

```lua
selectedRealmName = SelectedRealmName()
```

Returns:
- `selectedRealmName`: cstring

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
