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

已合并
dan 2018-10-29 19:32:02 +00:00 将 1 次代码提交从 handlers 合并至 master
管理员
  • 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]
普通成员
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/232
普通成员
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/233
普通成员
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch/235
dan "于 2018-10-29 19:32:01 +00:00 关闭此合并请求 "
登录 并参与到对话中。
没有提供说明。