You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, subscriber IDs and published messages are managed in two places, for SocketPublishSubscribe-commands and HTTPStreaming-commands.
So, published messages are delivered to correct subscribers by two similar codes in different layers. They should be unified to a "manager" class.
messages for SocketPublishSubscribe commands: delivered by codes in lib/adapter/socket.io.js (the framework)
messages for HTTPStreaming commands: lib/adapter/command.js (a specific command)
SocketPublishSubscribe型のコマンドとHTTPStreaming型のコマンドとで、subscriberとpublished messagesを別々に管理している。
published messageが届いた時に、対応するsubscriberに対してだけそのメッセージを配信する、という処理を、それぞれ別々のレイヤで管理している。
Actual (現状)
Currently, subscriber IDs and published messages are managed in two places, for SocketPublishSubscribe-commands and HTTPStreaming-commands.
So, published messages are delivered to correct subscribers by two similar codes in different layers. They should be unified to a "manager" class.
SocketPublishSubscribe型のコマンドとHTTPStreaming型のコマンドとで、subscriberとpublished messagesを別々に管理している。
published messageが届いた時に、対応するsubscriberに対してだけそのメッセージを配信する、という処理を、それぞれ別々のレイヤで管理している。
Expected (期待される状態)
How to fix (解決方法)
Define a "manager" class and move modes to it.
SocketPublishSubscribe型のコマンド、HTTPStreaming型のコマンド、フレームワークの三者の関係を見直し、subscriberを一元管理するための新しい仕組みを作る。
The text was updated successfully, but these errors were encountered: