Skip to content

fix: replaced ws import with isomorphic-ws - #64

Open
iltumio wants to merge 1 commit into
feross:masterfrom
Satellite-im:isomorphic-ws
Open

iltumio wants to merge 1 commit into
feross:masterfrom
Satellite-im:isomorphic-ws

Conversation

@iltumio

@iltumio iltumio commented Nov 25, 2021

Copy link
Copy Markdown

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 ws@7.5.6 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