-
Notifications
You must be signed in to change notification settings - Fork 10
[FFM-1262] polling processor, streaming processor #2
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
Conversation
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.
Great work. Just some observations/questions
eventBus.on(Event.CONNECTED, () => { | ||
this.stop(); | ||
}); | ||
|
||
eventBus.on(Event.DISCONNECTED, () => { | ||
this.resume(); | ||
}); |
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.
Oh, I think I get it now. So when the stream connects the polling stops. It might be a bit more obvious how it works if you pull this up to the parent class and let the PollingProcessor
be a little bit more dumb.
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, I will make stop() and resume() public methods and from ClientFC make proper calls
import { StreamProcessor } from './streaming'; | ||
import * as events from 'events'; | ||
|
||
export class CfClient { |
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.
Not sure I'd consider this in the scope of this ticket, but since we no longer use "Continuous Features", should this be FFClient
?
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.
Worth considering the name of the CfClient
class, but that can wait. Looks good
No description provided.