add , to disconnect
This commit is contained in:
parent
3d9b2b2c1c
commit
8eca6249c0
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user