add , to disconnect

This commit is contained in:
Erik Little 2018-01-07 18:23:36 -05:00
parent 3d9b2b2c1c
commit 8eca6249c0
No known key found for this signature in database
GPG Key ID: B8E1F067FE8DCAAF

View File

@ -233,7 +233,8 @@ open class SocketManager : NSObject, SocketManagerSpec, SocketParsable, SocketDa
/// ///
/// - parameter socket: The socket to disconnect. /// - parameter socket: The socket to disconnect.
open func disconnectSocket(_ socket: SocketIOClient) { open func disconnectSocket(_ socket: SocketIOClient) {
engine?.send("1\(socket.nsp)", withData: []) engine?.send("1\(socket.nsp),", withData: [])
socket.didDisconnect(reason: "Namespace leave") socket.didDisconnect(reason: "Namespace leave")
} }