---
title: WebSocket
framework: network
role: symbol
role_heading: Structure
path: network/websocket
---

# WebSocket

The system definition of the WebSocket protocol.

## Declaration

```swift
struct WebSocket
```

## Overview

Overview Can be used to add WebSocket to a protocol stack and configure its options.

## Topics

### Initializers

- [init(_:)](network/websocket/init(_:)-5q53h.md)
- [init(_:)](network/websocket/init(_:)-7xsae.md)

### Instance Methods

- [additionalHeaders(_:)](network/websocket/additionalheaders(_:).md)
- [autoReplyPing(_:)](network/websocket/autoreplyping(_:).md)
- [maximumMessageSize(_:)](network/websocket/maximummessagesize(_:).md)
- [skipHandshake(_:)](network/websocket/skiphandshake(_:).md)
- [subprotocols(_:)](network/websocket/subprotocols(_:).md)

## Relationships

### Conforms To

- [MessageProtocol](network/messageprotocol.md)
- [NetworkProtocolOptions](network/networkprotocoloptions.md)
- [OneToOneProtocol](network/onetooneprotocol.md)
