-
Notifications
You must be signed in to change notification settings - Fork 128
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
new Socket() fails #36
Comments
I am facing the same problem. |
I can create and use a socket with following code in a function:
|
I have found the reason to the fail reported in my previous comment: code runs ok when app is launched in an Android device, but it fails when using "ionic serve" to run on browser. I have noticed that this plugin is declared to NOT work on browser environment, so I think everything is OK with this issue. |
As per the given instruction, I have installed the plugin and then written a function in app.js that contains -
var v = new Socket();
When I run my app using 'ionic serve', I get the following error in Chrome browser -
ReferenceError: Socket is not defined
Could anybody find my mistake? Any help would be highly appreciated...
The text was updated successfully, but these errors were encountered: