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

Злито
dan злито 1 комітів з handlers до master 2018-10-29 19:32:02 +00:00
erinn прокоментував(ла) 2018-10-27 09:13:54 +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]
buildbot прокоментував(ла) 2018-10-27 09:14:15 +00:00
Учасник
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/232
buildbot прокоментував(ла) 2018-10-27 17:38:26 +00:00
Учасник
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/233
buildbot прокоментував(ла) 2018-10-29 19:31:18 +00:00
Учасник
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'.

Термін виконання не встановлений.

Залежності

No dependencies set.

Reference: cwtch.im/cwtch#149
No description provided.