-
Notifications
You must be signed in to change notification settings - Fork 111
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
what to do when WS is not a constructor? #111
Comments
silly me, wrong repo. will do this in https://github.com/websockets/ws |
no worries. |
sorry, reopening. moving this back here from websockets/ws#1060 i guess it has something to do with the ws-fallback.js file. |
we do not have a ws-fallback here. What do you mean? |
https://github.com/maxogden/websocket-stream/blob/master/ws-fallback.js I guess the Opera version is too old, for example in 11.50 you had to enable WebSocket manually to have the @binarykitchen you should download the Opera version that is giving you troubles, open the console and check if there is a global |
damn, cannot reproduce this anymore. wish i had noted down the exact opera version. but still, i wonder what the recommendation is when maybe throw an exception somewhere saying that "your browser does not support WebSockets" or something like that? |
I think it makes sense. |
I got this issue too. when I used wepback4.x to build, and ran it by 'node main.js', this error happened. How to fixed it? |
@limjiregister My solution was setting the |
for some exotic browsers i want to support, like opera, i see the
WS is not a constructor
error.do you think you could add a workaround for that? if not, what else would you suggest in my place?
The text was updated successfully, but these errors were encountered: