---
title: skipHandshake
framework: network
role: symbol
role_heading: Instance Property
path: network/nwprotocolwebsocket/options/skiphandshake
---

# skipHandshake

A Boolean indicating whether the WebSocket protocol skips its handshake and begins framing data once the underlying connection is established.

## Declaration

```swift
var skipHandshake: Bool { get set }
```

## Discussion

Discussion This option should not be set when communicating with a generic WebSocket server or client. This option allows a custom handshake (or no handshake) to be implemented below the WebSocket layer when both client and server are coordinated.

## See Also

### Configuring Client Handshakes

- [setAdditionalHeaders(_:)](network/nwprotocolwebsocket/options/setadditionalheaders(_:).md)
- [setSubprotocols(_:)](network/nwprotocolwebsocket/options/setsubprotocols(_:).md)
