---
title: nw_ws_opcode_ping
framework: network
role: symbol
role_heading: Global Variable
path: network/nw_ws_opcode_ping
---

# nw_ws_opcode_ping

A Ping message, which requests a Pong from the peer.

## Declaration

```swift
var nw_ws_opcode_ping: nw_ws_opcode_t { get }
```

## See Also

### Control Types

- [nw_ws_opcode_pong](network/nw_ws_opcode_pong.md)
- [nw_ws_opcode_close](network/nw_ws_opcode_close.md)
- [nw_ws_opcode_invalid](network/nw_ws_opcode_invalid.md)
