Add faq for namespace usage

This commit is contained in:
Erik Little 2017-09-11 12:08:58 -04:00
parent 5470fb6926
commit 3019fd7ea3
No known key found for this signature in database
GPG Key ID: 62F837E56F4E9320

View File

@ -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")])
```