IPWorks WebSockets 2020 iOS Edition

Questions / Feedback?

subProtocols (property)

Optional subprotocols supported by the client.

Syntax

@property (nonatomic,readwrite,assign,getter=subProtocols,setter=setSubProtocols:) NSString* subProtocols;
- (NSString*)subProtocols;
- (void)setSubProtocols:(NSString*)newSubProtocols;
public var subProtocols: String {
  get {...}
set {...} }

Default Value

""

Remarks

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) 2022 /n software inc. - All rights reserved.
IPWorks WebSockets 2020 iOS Edition - Version 20.0 [Build 8155]