Skip to content

Commit 389daea

Browse files
committed
event: add doc about stop method
1 parent 03d40a9 commit 389daea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ By default, the subscription will be permanent. If you want to set a timeout, yo
3333

3434
## How it works
3535

36-
When subscribing to an event, a new thread is created to listen for notifications. The thread will call the callback function provided when an event is received. When unsubscribing, the thread will be stopped and the socket will be closed if no exceptions occur.
36+
When subscribing to an event, a new thread is created to listen for notifications. The thread will call the callback function provided when an event is received. When unsubscribing, the thread will be stopped and the socket will be closed if no exceptions occur. You can also use `stop` method to stop the thread and close the socket manually.

0 commit comments

Comments
 (0)