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

Scalone
dan scala 1 commity/ów z handlers do master 2018-10-29 19:32:02 +00:00
Właściciel
  • 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]
Członek
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/232
Członek
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/233
Członek
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch/235
dan zamknął(-ęła) ten pull request 2018-10-29 19:32:01 +00:00
Zaloguj się, aby dołączyć do tej rozmowy.
Brak recenzentów
Brak kamienia milowego
Brak przypisanych
Uczestnicy 2
Powiadomienia
Termin realizacji
Data realizacji jest niewłaściwa lub spoza zakresu. Użyj formatu 'yyyy-mm-dd'.

Brak ustawionego terminu realizacji.

Zależności

No dependencies set.

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