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

How to use dynamic path like Retrofit? #29

Closed
hantrungkien opened this issue Oct 8, 2018 · 5 comments
Closed

How to use dynamic path like Retrofit? #29

hantrungkien opened this issue Oct 8, 2018 · 5 comments

Comments

@hantrungkien
Copy link

My case is open WSocket with domain: abcd.xyz/admin

  • 1 endpoint to handshake with server.
  • 1 endpoint to subcribe one event.

So how to use dynamic path like Retrofit or must change base WS url?
Many thanks!

@zhxnlai zhxnlai added pr welcome Feel free to submit a PR and removed pr welcome Feel free to submit a PR labels Oct 15, 2018
@zhxnlai
Copy link
Collaborator

zhxnlai commented Oct 15, 2018

Is this use case specified in the WebSocket protocol? Were you able to implement this on Web or iOS?

@kikebodi
Copy link

kikebodi commented Nov 20, 2018

Are there any plans to include annotations like @Path on Retrofit?

@zhxnlai
Copy link
Collaborator

zhxnlai commented Nov 20, 2018

@kikebodi because all interface methods share the same URL, I don't think we need a @Path annotation?

@hantrungkien
Copy link
Author

hantrungkien commented Nov 21, 2018

@zhxnlai Thank you for your reply.
The reason I created this problem is that at this point I am working with the socket in a new project, the backend uses SockJS (STOMP protocol https://stomp.github.io/) and I do not have more experience work with socket. So now I think we can close this issue. Many thanks Tinder!

@zhxnlai
Copy link
Collaborator

zhxnlai commented Jan 18, 2019

Hi @hantrungkien, the 0.2.4-alpha1 version supports STOMP. It is not added to the demo app yet but the integration test is a good reference.

@zhxnlai zhxnlai closed this as completed Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants