add some unittests and bug fix

This commit is contained in:
hdt3213
2021-05-02 18:48:44 +08:00
parent 37779717e4
commit 9f3ac88b36
19 changed files with 256 additions and 146 deletions

View File

@@ -4,8 +4,8 @@ type Connection interface {
Write([]byte) error
// client should keep its subscribing channels
SubsChannel(channel string)
UnSubsChannel(channel string)
Subscribe(channel string)
UnSubscribe(channel string)
SubsCount() int
GetChannels() []string
}