pybotters.DataStoreCollection

class pybotters.DataStoreCollection

Abstract DataStoreCollection class.

DataStore のコレクションクラスです。 DataStore を作成することができ、 1 つまたは複数の DataStore を管理します。

Methods

__init__()

onmessage(msg, ws)

WebSocket message handler.

wait()

DataStoreCollection の onmessage ハンドラが呼び出しされるまで待機します。

onmessage(msg: Any, ws: ClientWebSocketResponse) None

WebSocket message handler.

Client.ws_connect() に渡すコールバックです。

パラメータ:
  • msg -- WebSocket メッセージ

  • ws -- WebSocket レスポンスクラス

async wait() None

DataStoreCollection の onmessage ハンドラが呼び出しされるまで待機します。