{"library":"cordova-plugin-websocket","type":"library","category":null,"description":"Cordova plugin that provides WebSocket (RFC6455) support for Android versions prior to 4.4 (KitKat) and Crosswalk environments where native WebSocket may be absent. Stable version 0.12.2, last updated in 2016. Based on Jetty 8, it implements both text and binary messages (binary requires API >= 14). Unlike alternative WebSocket plugins for Cordova, this one is specifically designed for older Android devices and is not used on Android 4.4+ by default. It requires cordova-android 3.6.0+ and a whitelist plugin for cordova-android 4.0.0+.","language":"javascript","status":"maintenance","version":"0.12.2","tags":["javascript","cordova","phonegap","websocket","android","ecosystem:cordova","cordova-android"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cordova-plugin-websocket","imports":["// No import needed; global 'WebSocket' constructor is provided by the plugin after deviceready","if (typeof WebSocket !== 'undefined') { var ws = new WebSocket('ws://example.com'); }","var ws = new WebSocket('ws://example.com', ['protocol1']);"]},{"cmd":"yarn add cordova-plugin-websocket","imports":[]},{"cmd":"pnpm add cordova-plugin-websocket","imports":[]}],"homepage":"https://github.com/knowledgecode/WebSocket-for-Android#readme","github":"https://github.com/knowledgecode/WebSocket-for-Android","docs":null,"changelog":null,"pypi":null,"npm":"cordova-plugin-websocket","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}