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

fix: replaced ws import with isomorphic-ws #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iltumio
Copy link

@iltumio iltumio commented Nov 25, 2021

Using isomorphic-ws wrapper we can ensure that the library works seamlessly in node or in the browser even with newer versions of ws.

The library was not working properly with [email protected] because the import in that version returns a function that throws an error even if you are in the browser, making the if condition at the beginning of the file to always return the node version.

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

Successfully merging this pull request may close these issues.

1 participant