-
-
-
- --
- - - SocketEngine --- --- - ---The class that handles the engine.io protocol and transports. -See
- - See more -SocketEnginePollableandSocketEngineWebsocketfor transport specific methods.--Declaration
---Swift
-
- -open class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePollable, SocketEngineWebsocket, ConfigSettable
-
- @@ -368,88 +336,6 @@ Example:
-
-
-
- --
- - - SSLSecurity --- --- - ---A wrapper around Starscream’s SSLSecurity that provides a minimal Objective-C interface.
- - See more ---Declaration
---Swift
-
- -open class SSLSecurity : NSObject
-
-
-
-
- --
- - - SocketManager --- --- - ---A manager for a socket.io connection.
- -A
- -SocketManageris responsible for multiplexing multiple namespaces through a singleSocketEngineSpec.Example:
-
- -let manager = SocketManager(socketURL: URL(string:"http://localhost:8080/")!) -let defaultNamespaceSocket = manager.defaultSocket -let swiftSocket = manager.socket(forNamespace: "/swift") - -// defaultNamespaceSocket and swiftSocket both share a single connection to the server -Sockets created through the manager are retained by the manager. So at the very least, a single strong reference -to the manager must be maintained to keep sockets alive.
- -To disconnect a socket and remove it from the manager, either call
- -SocketIOClient.disconnect()on the socket, -or call one of thedisconnectSocketmethods on this class.NOTE: The manager is not thread/queue safe, all interaction with the manager should be done on the
- - See more -handleQueue--Declaration
---Swift
-
- -open class SocketManager : NSObject, SocketManagerSpec, SocketParsable, SocketDataBufferable, ConfigSettable
-
-
@@ -518,14 +404,129 @@ or call one of the
disconnectSocketmethods on this class.
-
+
-
+ ++
+ + + SocketEngine +++ +++ + +++The class that handles the engine.io protocol and transports. +See
+ + See more +SocketEnginePollableandSocketEngineWebsocketfor transport specific methods.++Declaration
+++Swift
+
+ +open class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePollable, SocketEngineWebsocket, ConfigSettable
+
-
+
-
+ ++
+ + + SocketManager +++ +++ + +++A manager for a socket.io connection.
+ +A
+ +SocketManageris responsible for multiplexing multiple namespaces through a singleSocketEngineSpec.Example:
+
+ +let manager = SocketManager(socketURL: URL(string:"http://localhost:8080/")!) +let defaultNamespaceSocket = manager.defaultSocket +let swiftSocket = manager.socket(forNamespace: "/swift") + +// defaultNamespaceSocket and swiftSocket both share a single connection to the server +Sockets created through the manager are retained by the manager. So at the very least, a single strong reference +to the manager must be maintained to keep sockets alive.
+ +To disconnect a socket and remove it from the manager, either call
+ +SocketIOClient.disconnect()on the socket, +or call one of thedisconnectSocketmethods on this class.NOTE: The manager is not thread/queue safe, all interaction with the manager should be done on the
+ + See more +handleQueue++Declaration
+++Swift
+
+ +open class SocketManager : NSObject, SocketManagerSpec, SocketParsable, SocketDataBufferable, ConfigSettable
+
-
+
-
+ ++
+ + + SSLSecurity +++ +++ + +++A wrapper around Starscream’s SSLSecurity that provides a minimal Objective-C interface.
+ + See more +++Declaration
+++Swift
+
+ +open class SSLSecurity : NSObject
+