The plugin's API is identical to the WebSocket one so you don't need to re-learn a new API or change existing WebSocket calls. To install:
- Include websocket.js in the your HTML file:
- From your console, enter 'mvn package' in the Java-WebSocket project root directory. Move the produced JAR to your Cordova application classpath.
- Add the following plugin entry to the plugins.xml file: