您应该看到如图18中所示的内容。控制台的输出显示两个订阅者都收到了由发布者发送的消息。
You should see something like Figure 18. The output in the console shows that both subscribers got the message sent by the publisher.
如果您使用与测试原始发布者模块相同的方式测试请求者模块,您将看到Subscriber1和Subscriber2都收到了由请求者发送的消息。
If you test the requester module in the same way you tested the original publisher module, you'll see that both Subscriber1 and Subscriber2 get the message sent by the requester.
如果您使用与测试原始发布者模块相同的方式测试请求者模块,您将看到Subscriber1和Subscriber2都收到了由请求者发送的消息。
If you test the requester module in the same way you tested the original publisher module, you'll see that both Subscriber1 and Subscriber2 get the message sent by the requester.
应用推荐