Add note about manager not being thread safe

This commit is contained in:
Erik Little 2018-05-10 07:46:38 -04:00
parent c3cabe43bf
commit 4ea1bb9c43
No known key found for this signature in database
GPG Key ID: 62F837E56F4E9320

View File

@ -43,6 +43,8 @@ import Foundation
/// To disconnect a socket and remove it from the manager, either call `SocketIOClient.disconnect()` on the socket, /// To disconnect a socket and remove it from the manager, either call `SocketIOClient.disconnect()` on the socket,
/// or call one of the `disconnectSocket` methods on this class. /// or call one of the `disconnectSocket` methods on this class.
/// ///
/// **NOTE**: The manager is not thread/queue safe, all interaction with the manager should be done on the `handleQueue`
///
open class SocketManager : NSObject, SocketManagerSpec, SocketParsable, SocketDataBufferable, ConfigSettable { open class SocketManager : NSObject, SocketManagerSpec, SocketParsable, SocketDataBufferable, ConfigSettable {
private static let logType = "SocketManager" private static let logType = "SocketManager"