Skip to content

client.on() method #142

@Elevencode

Description

@Elevencode

For example, the Dart language has an on() method that allows you to work with events. This is very convenient, because I need not to be tied to a channel. Is there any alternative in package for python?

Dart example:

client.on().listen((event) => {
	if (event.totalUnreadCount != null) {
		print('unread messages count is now: ${event.totalUnreadCount}');
	}
 
	if (event.unreadChannels !== null) {
		print('unread channels count is now: ${event.unreadChannels}');
	}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions