16
20
Fork 16

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

Zusammengeführt
dan hat 1 Commits von handlers nach master 2018-10-29 19:32:02 +00:00 zusammengeführt
Besitzer
  • 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]
Mitglied
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/232
Mitglied
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/233
Mitglied
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch/235
dan hat diesen Pull-Request 2018-10-29 19:32:01 +00:00 geschlossen
Anmelden, um an der Diskussion teilzunehmen.
Keine Reviewer
Kein Meilenstein
Niemand zuständig
2 Beteiligte
Nachrichten
Fällig am
Das Fälligkeitsdatum ist ungültig oder außerhalb des zulässigen Bereichs. Bitte verwende das Format „jjjj-mm-tt“.

Kein Fälligkeitsdatum gesetzt.

Abhängigkeiten

Keine Abhängigkeiten gesetzt.

Referenz: cwtch.im/cwtch#149
Keine Beschreibung angegeben.