Skip to content
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

Hyperty unable to send HTTP requests across all runtimes #118

Open
Endebert opened this issue Oct 14, 2016 · 1 comment
Open

Hyperty unable to send HTTP requests across all runtimes #118

Endebert opened this issue Oct 14, 2016 · 1 comment

Comments

@Endebert
Copy link

Endebert commented Oct 14, 2016

I would like to ask for a generic solution for hyperties to be able to send http requests.

Currently, there is no set standard for hyperties to do that. For example, the RoomServer hyperty sends HTTP requests using the classes provided by browsers (see here). That means that this hyperty can only run properly in the browser runtime, and would not work in the nodejs runtime.

The RuntimeFactory (e.g. from the browser runtime) provides a generic function for this purpose, so that other parts of the runtime, that have access to this function (like the Runtime Catalogue), can send http requests in a generic matter, unaffacted by which runtime is in use.

However, hyperties lack such access. This might be related to security concerns, however, I request a somewhat similar solution for hyperties.

I would suggest to add another parameter to the hyperty constructor, that is either an object that may hold several runtime specific functions for hyperties, or provide these functions directly as parameters.

@pchainho @sbecot @EwaJan please provide feedback.

Otherwise some hyperties will be limited to the browser runtime, which is not a desired solution, since we would like to have the RoomServer hyperty running in the nodeJS runtime at some point.

@Trikolon
Copy link

This issue is still affecting our deployment. No replies since October 2016, please look into it.
So far we were only able to implement this functionality using 'dirty workarounds'. We'd love to see official support for sending http-requests across runtimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants