Skip to content

Commit 3019fd7

Browse files
committed
Add faq for namespace usage
1 parent 5470fb6 commit 3019fd7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Usage Docs/FAQ.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,13 @@ class SocketManager {
4242
}
4343

4444
```
45+
46+
------
47+
48+
Another case where this might happen is if you use namespaces in your socket.io application.
49+
50+
In the JavaScript client a url that looks like `http://somesocketioserver.com/client` would be done with the `nsp` config.
51+
52+
```swift
53+
let socket = SocketIOClient(socketURL: URL(string: "http://somesocketioserver.com/client")!, config: [.nsp("/client")])
54+
```

0 commit comments

Comments
 (0)