-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor remaining everrest websocket endpoints to use Json RPC #8388
Conversation
@@ -15,7 +15,7 @@ import {Websocket} from "../../../spi/websocket/websocket"; | |||
import {HttpJsonRequest} from "../../../spi/http/default-http-json-request"; | |||
import {DefaultHttpJsonRequest} from "../../../spi/http/default-http-json-request"; | |||
import {HttpJsonResponse} from "../../../spi/http/default-http-json-request"; | |||
import {MessageBus} from "../../../spi/websocket/messagebus"; | |||
import {JsonRpcBus} from "../../../spi/websocket/json-rpc-bus"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now, we can get rid of MessageBus class as well and all references to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -113,6 +113,8 @@ export class System { | |||
}); | |||
return messageBus.subscribeAsync(channelToListen, callbackSubscriber); | |||
}).then((subscribed: string) => { | |||
return this.delay(2000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a comment why it's required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please test CLI carefully after these changes
@@ -22,7 +21,5 @@ | |||
@DynaModule | |||
public class WsAgentServletModule extends ServletModule { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this class at all?
What does this PR do?
Refactors organization & system websocket channels to use Json RPC. Refactor CLI client in part of graceful shutdown. Remove utility classes used for everrest websockets.
What issues does this PR fix or reference?
#5357
Release Notes
Refactored organization & system websocket channels to use Json RPC
Docs PR
N/A