Renames message event to chat_message

This commit is contained in:
Saptak S 2021-11-14 21:06:47 +05:30
parent 7f846ae2fd
commit 6031f36185
2 changed files with 2 additions and 2 deletions

View file

@ -131,7 +131,7 @@ class ChatModeWeb:
"""Sent by a client when the user entered a new message.
The message is sent to all people in the server."""
emit(
"message",
"chat_message",
{"username": session.get("name"), "msg": message["msg"]},
broadcast=True,
)