From 5c9dc2cee8cce768a8830bb850a226009a59afdb Mon Sep 17 00:00:00 2001 From: Erik Little Date: Sun, 12 Nov 2017 11:22:26 -0500 Subject: [PATCH] Add more to the migration guide --- Usage Docs/12to13.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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?