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

Merged
dan merged 1 commits from handlers into master 2 years ago
erinn commented 2 years ago
  • 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 commented 2 years ago
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/232
buildbot commented 2 years ago
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/233
buildbot commented 2 years ago
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch/235
dan closed this pull request 2 years ago
The pull request has been merged as ce7d57a1a5.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.