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

Add endpoints-sttp-client support scala.js #571

Open
RustamSultanov opened this issue May 19, 2020 · 3 comments
Open

Add endpoints-sttp-client support scala.js #571

RustamSultanov opened this issue May 19, 2020 · 3 comments

Comments

@RustamSultanov
Copy link

Why sttp doesnt support scala.js? Sttp have scala.js support https://sttp.softwaremill.com/en/latest/backends/javascript/fetch.html but in endpoints sttp only jvm configured :(

@julienrf
Copy link
Member

Hello, I don’t know if there is a reason for this. Maybe at the time that client was added it didn’t support Scala.js?

in the meantime, you can use the endpoints-xhr-client that supports Scala.js.

@RustamSultanov
Copy link
Author

Yes, endpoints-xhr-client it is good for me, but sttp support streaming via FetchMonixBackend and this is very useful in conjunction with endpoints

@julienrf
Copy link
Member

julienrf commented May 22, 2020

Interesting. I don’t know how hard it would be to support Scala.js in the sttp interpreter. If it supports streaming this could solve #287. Otherwise, it should probably be possible to add support for streaming to the endpoints-xhr-client interpreter (there used to be a prototype here, for the record: https://github.com/julienrf/endpoints/blob/streaming-support/xhr/client/src/main/scala/endpoints/xhr/Http1Streaming.scala)

Would you be interested in trying one of these solutions?

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