Skip to content

Commit ab0542c

Browse files
committed
Updated documentation
1 parent 59ef1a9 commit ab0542c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,17 @@ u.set_on_quote_update (my_generic_event_handler)
223223
```
224224

225225
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
226234
```python
227235
u.start_websocket (True)
236+
condition = threading.Condition()
237+
condition.acquire()
238+
condition.wait()
228239
```

0 commit comments

Comments
 (0)