---
title: "skipHandshake(_:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/websocket/skiphandshake(_:)"
---

# skipHandshake(_:)

Configure the WebSocket protocol to skip the opening handshake and begin framing data as soon as the underlying connection is established.

## Declaration

```swift
func skipHandshake(_ skip: Bool) -> WebSocket
```

## Parameters

- `skip`: True to skip the handshake. Defaults to false.

## Discussion

Discussion note: 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.
