@@ -108,6 +108,8 @@ open class SocketIOClient: NSObject, SocketIOClientSpec {
108108 /// Connect to the server. The same as calling `connect(timeoutAfter:withHandler:)` with a timeout of 0.
109109 ///
110110 /// Only call after adding your event listeners, unless you know what you're doing.
111+ ///
112+ /// - parameter withPayload: An optional payload sent on connect
111113 open func connect( withPayload payload: [ String : Any ] ? = nil ) {
112114 connect ( withPayload: payload, timeoutAfter: 0 , withHandler: nil )
113115 }
@@ -116,6 +118,7 @@ open class SocketIOClient: NSObject, SocketIOClientSpec {
116118 ///
117119 /// Only call after adding your event listeners, unless you know what you're doing.
118120 ///
121+ /// - parameter withPayload: An optional payload sent on connect
119122 /// - parameter timeoutAfter: The number of seconds after which if we are not connected we assume the connection
120123 /// has failed. Pass 0 to never timeout.
121124 /// - parameter handler: The handler to call when the client fails to connect.
@@ -343,7 +346,7 @@ open class SocketIOClient: NSObject, SocketIOClientSpec {
343346
344347 /// Joins `nsp`. You shouldn't need to call this directly, instead call `connect`.
345348 ///
346- /// - Parameter payload: The optional
349+ /// - parameter withPayload: An optional payload sent on connect
347350 open func joinNamespace( withPayload payload: [ String : Any ] ? = nil ) {
348351 DefaultSocketLogger . Logger. log ( " Joining namespace \( nsp) " , type: logType)
349352
0 commit comments