From 3019fd7ea388bfc809d2f1a96816081bffe684f1 Mon Sep 17 00:00:00 2001 From: Erik Little Date: Mon, 11 Sep 2017 12:08:58 -0400 Subject: [PATCH] Add faq for namespace usage --- Usage Docs/FAQ.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Usage Docs/FAQ.md b/Usage Docs/FAQ.md index 860d890..47eba8b 100644 --- a/Usage Docs/FAQ.md +++ b/Usage Docs/FAQ.md @@ -42,3 +42,13 @@ class SocketManager { } ``` + +------ + +Another case where this might happen is if you use namespaces in your socket.io application. + +In the JavaScript client a url that looks like `http://somesocketioserver.com/client` would be done with the `nsp` config. + +```swift +let socket = SocketIOClient(socketURL: URL(string: "http://somesocketioserver.com/client")!, config: [.nsp("/client")]) +```