IPWorks WebSockets 2020 macOS Edition

Questions / Feedback?

SubProtocols Property

Optional subprotocols supported by the client.


public var subProtocols: String {
get {...}
set {...} }

Default Value



This property is optional. Set this property to one or more comma separated subprotocols the client supports. These should be provided in order of preference. For instance: "chat, superchat".

The server will accept one subprotocol during the connection. After the connection is established this property will be updated by the class to reflect the value the server chose. Query this property to determine the negotiated subprotocol.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks WebSockets 2020 macOS Edition - Version 20.0 [Build 7941]