add docker and monitor sub channel

This commit is contained in:
barnettZQG 2020-07-11 17:41:55 +08:00
parent 502b2077fa
commit 26b50e3d72

View File

@ -161,6 +161,12 @@ func (p *PubContext) handleSubscribe(wm WebsocketMessage) {
p.createChan(channel, "docker", channelInfo[1])
p.createChan(channel, "newmonitor", channelInfo[1])
}
if channelInfo[0] == "l" {
p.createChan(channel, "docker", channelInfo[1])
}
if channelInfo[0] == "m" {
p.createChan(channel, "newmonitor", channelInfo[1])
}
if channelInfo[0] == "e" {
p.createChan(channel, "event", channelInfo[1])
}