Skip to content

Commit 187646b

Browse files
committed
Upd readme
1 parent 078e5b2 commit 187646b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,11 @@ by ThingsDB when a client disconnects or when a node is shutting down.
495495
### on_delete(self) -> None:
496496
Called when the room is removed from ThingsDB.
497497

498+
### on_emit(self, event: str, *args) -> None:
499+
Called when no event handler is configured for the event.
500+
By default, the `on_emit` will display a "debug" log message when called to
501+
show that no handler for the event is found.
502+
498503
## Room Properties
499504

500505
The following properties are available on a room instance. Note that some properties

thingsdb/room/room.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def on_delete(self) -> None:
5353
"""
5454
pass
5555

56-
def on_emit(self, event, *args):
56+
def on_emit(self, event: str, *args):
5757
"""On emit
5858
Called when no event handler is configured for the event.
5959
"""

0 commit comments

Comments
 (0)