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

Fusionnée
dan a fusionné 1 révision(s) à partir de handlers vers master 2018-10-29 19:32:02 +00:00
Propriétaire
  • 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]
Membre
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/232
Membre
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/233
Membre
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch/235
dan a fermé cette demande d'ajout 2018-10-29 19:32:01 +00:00.
Connectez-vous pour rejoindre cette conversation.
Sans évaluateur
Sans jalon
Sans assignation
2 participants
Notifications
Échéance
La date d’échéance est invalide ou hors plage. Veuillez utiliser le format 'aaaa-mm-dd'.

Aucune échéance n'a été définie.

Dépendances

Aucune dépendance définie.

Référence : cwtch.im/cwtch#149
Sans contenu.