custom handlers for arbitrary channel types in cwtch peer-peer connections #149

マージ済み
dan が 1 個のコミットを handlers から master へマージ 2018-10-29 19:32:02 +00:00
オーナー
  • create an ApplicationInstanceFactory with handlers for as many channels of any types you like, and register them with a cwtch peer
    • doesn't clobber the underlying aif and its associated cwtch management channels
    • set by SetApplicationInstanceFactory(...) instead of in the constructor to preserve backwards compatibility
  • use DoOnChannel(...) to perform an operation on an arbitrary channel type
    • provides .Do(func) wrapping
  • requires an update to libricochet-go as well

I have some good example code for this coming up in [redacted]

* create an ApplicationInstanceFactory with handlers for as many channels of any types you like, and register them with a cwtch peer * doesn't clobber the underlying aif and its associated cwtch management channels * set by SetApplicationInstanceFactory(...) instead of in the constructor to preserve backwards compatibility * use DoOnChannel(...) to perform an operation on an arbitrary channel type * provides .Do(func) wrapping * requires an update to libricochet-go as well I have some good example code for this coming up in [redacted]
メンバー
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/232
メンバー
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/233
メンバー
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch/235
dan がプルリクエストをクローズ 2018-10-29 19:32:01 +00:00
サインインしてこの会話に参加。
レビューアなし
マイルストーンなし
担当者なし
2 人の参加者
通知
期日
期日が正しくないか範囲を超えています。 'yyyy-mm-dd' の形式で入力してください。

期日は未設定です。

依存関係

依存関係が設定されていません。

リファレンス: cwtch.im/cwtch#149
説明はありません。