-
Notifications
You must be signed in to change notification settings - Fork 75
Add support for interactive compute. Closes #1691 #1693
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 are still some remaining items:
|
| } | ||
|
|
||
| // Some functions for event support | ||
| on (ev, cb) { |
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.
This class should just inherit from EventEmitter
| emit (ev) { | ||
| const args = Array.prototype.slice.call(arguments, 1); | ||
| const handlers = this._events[ev] || []; | ||
| return Promise.all(handlers.map(fn => fn.apply(this, args))); |
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.
The emit method in EventEmitter should return a promise, too.
|
Server URL detection will become a non-issue after webgme/webgme-engine#212 is addressed as it will be able to reuse the existing ws connection. |
|
This is now only waiting on the new websocket API to be exposed by webgme-engine and then will need to be updated to use it! |
This PR adds support for interactive compute. That is, it enables visualizers to create an interactive session using a compute adapter and to use the compute for various calculations, etc.