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

change js remote to use isomorphic ws so can be used in browser also #1482

Conversation

gerardtoconnor
Copy link

current js implementation can only be used on node/server, and main reason is due to dependency on ws and its advanced options. if we use isomorphic-ws the client can be used on browser also, while still resolving to ws, with advanced options if deployed on node/server

@spmallette
Copy link
Contributor

thanks for this @gerardtoconnor but aren't there other things that need to be change for gremlin-javascript to work in a browser? specifically i'm thinking of the open PR #1291 and the work that remained there. cc/ @jorgebay

@jorgebay
Copy link
Contributor

Thanks for looking into this @gerardtoconnor !

Makes sense to start switching to something that supports both node.js and the browser.

I think it requires deeper changes:

@gerardtoconnor what are your thoughts on that? :)

@gerardtoconnor
Copy link
Author

Thanks @spmallette & @jorgebay I had missed those deeper change requirements so thank you for the insight. The existing PR does not look too far off, although needs tests etc, do we feel that we can work on that then or has there been any major stumbling points? @spmallette are others able to contribute to your fork or should I re-fork and open a new PR (I'd rather not and keep it under that PR).

@spmallette
Copy link
Contributor

you can definitely submit a PR against the TINKERPOP-2143 branch. I've just rebased it for you on master:

https://github.com/apache/tinkerpop/tree/TINKERPOP-2143

i would think that you could close this PR at this point and just submit a fresh one from that branch when you are ready. It would be excellent if you could finish this work off for us. thank you!

@spmallette
Copy link
Contributor

closing per previous comment

@spmallette spmallette closed this Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants