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

Fusionado
dan fusionados 1 commits de handlers en master 2018-10-29 19:32:02 +00:00
Propietario
  • 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]
Miembro
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/232
Miembro
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/233
Miembro
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch/235
dan cerró este pull request 2018-10-29 19:32:01 +00:00
Inicie sesión para unirse a esta conversación.
No hay revisores
Sin Milestone
No asignados
2 participantes
Notificaciones
Fecha de vencimiento
La fecha de vencimiento es inválida o está fuera de rango. Por favor utilice el formato 'aaaa-mm-dd'.

Sin fecha de vencimiento.

Dependencias

No se han establecido dependencias.

Referencia: cwtch.im/cwtch#149
No se ha proporcionado una descripción.