---
title: "init(_:)"
framework: network
role: symbol
role_heading: Initializer
path: "network/websocket/init(_:)-5q53h"
---

# init(_:)

Create an instance of the WebSocket protocol.

## Declaration

```swift
init<BelowProtocol>(@ProtocolStackBuilder<BelowProtocol> _ builder: () -> BelowProtocol) where BelowProtocol : MessageProtocol
```

## Parameters

- `builder`: The protocol stack below WebSocket.
