init(_:)
Create an instance of the WebSocket protocol.
Declaration
init<BelowProtocol>(@ProtocolStackBuilder<BelowProtocol> _ builder: () -> BelowProtocol) where BelowProtocol : StreamProtocolParameters
- builder:
The protocol stack below WebSocket.
Create an instance of the WebSocket protocol.
init<BelowProtocol>(@ProtocolStackBuilder<BelowProtocol> _ builder: () -> BelowProtocol) where BelowProtocol : StreamProtocolThe protocol stack below WebSocket.