diff --git a/Usage Docs/12to13.md b/Usage Docs/12to13.md index 01b9d70..96bf568 100644 --- a/Usage Docs/12to13.md +++ b/Usage Docs/12to13.md @@ -34,12 +34,19 @@ let namespaceSocket = manager.socket(forNamespace: "/swift") In v13 `defaultSocket` and `namespaceSocket` will share a single transport. This means one less connection to the server needs to be opened. -## What do I have to change? +## What might I have to change? -The most obvious thing you will need to change is that instead of creating `SocketIOClient`s directly, you will create a +- The most obvious thing you will need to change is that instead of creating `SocketIOClient`s directly, you will create a `SocketManager` and either use the `defaultSocket` property if you don't need namespaces, or call the `socket(forNamespace:)` method on the manager. +- `SocketIOClient` is no longer a client to an engine. So if you were overriding the engine methods, these have been moved +to the manager. + +- The library is now a single target. So you might have to change some of your Xcode project settings. + +- `SocketIOClient`s no longer take a configuration, they are shared from the manager. + ---------- # What things should I know?