We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ef1a9 commit ab0542cCopy full SHA for ab0542c
README.md
@@ -223,6 +223,17 @@ u.set_on_quote_update (my_generic_event_handler)
223
```
224
225
2. Start the websocket library. The first parameter, `run_in_background`, controls whether the socket will run as a daemon or not
226
+
227
+To run it in the current thread
228
+```python
229
+u.start_websocket (False)
230
+```
231
232
233
+To run it in the background
234
```python
235
u.start_websocket (True)
236
+condition = threading.Condition()
237
+condition.acquire()
238
+condition.wait()
239
0 commit comments