messenger_server.user_notifying module¶
-
class
messenger_server.user_notifying.
UserNotifier
¶ Class for sending packets that are not direct responses to incoming requests.
-
static
notify_users_of_contact_login
(contact)¶ Send status update to everyone who has the user in their contacts and is online.
Parameters: contact ( messenger_server.user_management.OnlineUser
) – User whose status was updated
-
static
send_message
(sender, recipient, message)¶ Send message to specified recipient.
Parameters: - sender (
messenger_server.user_management.OnlineUser
) – Sender of the message - recipient (
messenger_server.user_management.OnlineUser
) – Recipient of the message - message (str) – Contents of the message
- sender (
-
static