We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I use jWebSocket on phonegap, it checks for readyState as a property and errors when notdefined gets returned.
if( this.fConn.readyState == jws.OPEN ) { this.fConn.close(); }
Here, this.fConn is the WebSocket defined in websocket.js
I placed the following prototype addition in my copy of the js file to fix the issue:
WebSocket.prototype.__defineGetter__("readyState", function(){ return this.socket.getReadyState(); })
This should be placed in the project as well.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I use jWebSocket on phonegap, it checks for readyState as a property and errors when notdefined gets returned.
Here, this.fConn is the WebSocket defined in websocket.js
I placed the following prototype addition in my copy of the js file to fix the issue:
This should be placed in the project as well.
The text was updated successfully, but these errors were encountered: