client.on() method

未關閉
#142 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
25/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
python
領域
api

研究方向

首先檢視 Python 套件中現有的用戶端與頻道事件 API,並使用 Dart 的 client.on() 範例作為所要求行為的參考。確認是否已支援等效功能,並找出需要變更的 API 表面;只有在所要求的事件存取已明確實作或記錄後,該 issue 才算完成。

由索引模型根據 Issue 內容生成。

描述

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}');
	}
});
主要語言
Python
星號
73
分支
20
平均合併
11 小時 34 分鐘
30 天內合併 PR
7

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

GetStream/stream-chat-python 的其他 Issue

查看 GetStream/stream-chat-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。