You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -257,4 +257,46 @@ Implementing Pub-Sub via channels
257
257
var client =ScClient(url: "http://localhost:8000/socketcluster/")
258
258
client.disableSSLVerification(true)
259
259
```
260
+
### Custom Queue
260
261
262
+
A custom queue can be specified when delegate methods are called. By default `DispatchQueue.main` is used, thus making all delegate methods calls run on the main thread. It is important to note that all WebSocket processing is done on a background thread, only the delegate method calls are changed when modifying the queue. The actual processing is always on a background thread and will not pause your app.
263
+
264
+
```swift
265
+
var client =ScClient(url: "http://localhost:8000/socketcluster/")
0 commit comments