hprose/hprose-golang

客户端调用client.Unsubscribe并不会触发服务器端OnUnsubscribe,设计使然?

OliverZou opened this issue · 3 comments

看了代码,只有在断开offline时才OnUnsubscribe,这样设计有原因吗?
我想在程序过程中控制事件的订阅和取消

base_client.go 的Unsubscribe压根就没远程调用。服务器也没这样的Unsubscribe的远程rpc接口。这个设计让我陷入深深的沉思。。。。。。

andot commented

这个2.0版本的推送设计的不好,3.0 已经重新设计了。这里有关于设计讨论的修改:

hprose/hprose#8

andot commented

3.0 已发布。