@@ -108,6 +108,8 @@ open class SocketIOClient: NSObject, SocketIOClientSpec {
108
108
/// Connect to the server. The same as calling `connect(timeoutAfter:withHandler:)` with a timeout of 0.
109
109
///
110
110
/// Only call after adding your event listeners, unless you know what you're doing.
111
+ ///
112
+ /// - parameter withPayload: An optional payload sent on connect
111
113
open func connect( withPayload payload: [ String : Any ] ? = nil ) {
112
114
connect ( withPayload: payload, timeoutAfter: 0 , withHandler: nil )
113
115
}
@@ -116,6 +118,7 @@ open class SocketIOClient: NSObject, SocketIOClientSpec {
116
118
///
117
119
/// Only call after adding your event listeners, unless you know what you're doing.
118
120
///
121
+ /// - parameter withPayload: An optional payload sent on connect
119
122
/// - parameter timeoutAfter: The number of seconds after which if we are not connected we assume the connection
120
123
/// has failed. Pass 0 to never timeout.
121
124
/// - parameter handler: The handler to call when the client fails to connect.
@@ -343,7 +346,7 @@ open class SocketIOClient: NSObject, SocketIOClientSpec {
343
346
344
347
/// Joins `nsp`. You shouldn't need to call this directly, instead call `connect`.
345
348
///
346
- /// - Parameter payload: The optional
349
+ /// - parameter withPayload: An optional payload sent on connect
347
350
open func joinNamespace( withPayload payload: [ String : Any ] ? = nil ) {
348
351
DefaultSocketLogger . Logger. log ( " Joining namespace \( nsp) " , type: logType)
349
352
0 commit comments