DEP0163: channel.subscribe(onMessage), channel.unsubscribe(onMessage)
类型: 仅文档
这些方法已被弃用,因为它们的使用方式不能使通道引用保持足够长的时间以接收事件。
使用做同样事情的 diagnostics_channel.subscribe(name, onMessage)
或 diagnostics_channel.unsubscribe(name, onMessage)
。
Type: Documentation-only
These methods were deprecated because they can be used in a way which does not hold the channel reference alive long enough to receive the events.
Use diagnostics_channel.subscribe(name, onMessage)
or
diagnostics_channel.unsubscribe(name, onMessage)
which does the same
thing instead.