Skip to content

Conversation

@brollb
Copy link
Contributor

@brollb brollb commented May 13, 2020

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.

@brollb
Copy link
Contributor Author

brollb commented May 13, 2020

There are still some remaining items:

  • Ensure tests pass
  • Server URL detection
  • auth for blobClient in InteractiveCompute router

}

// Some functions for event support
on (ev, cb) {
Copy link
Contributor Author

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)));
Copy link
Contributor Author

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.

@brollb
Copy link
Contributor Author

brollb commented Jun 8, 2020

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.

@brollb
Copy link
Contributor Author

brollb commented Jun 9, 2020

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!

@brollb brollb merged commit aacd325 into master Jun 19, 2020
@brollb brollb deleted the 1691-interactive-compute branch June 19, 2020 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants