{"library":"cordova-plugin-websocket-server","type":"library","category":null,"description":"A Cordova plugin that enables running a single, lightweight WebSocket server on Android and iOS devices. Version 1.6.0 is the latest release. It allows starting/stopping a server on a specified port, managing WebSocket connections (open, message, close events), and sending/receiving text and binary messages. The server is not a background service and stops when the Cordova view is destroyed. Key differentiators: simple callback-based API, built-in support for network interface enumeration, and origin/protocol validation. The plugin relies on platform-specific libraries: TooTallNate Java-WebSocket for Android and PocketSocket for iOS.","language":"javascript","status":"active","version":"1.6.0","tags":["javascript","ecosystem:cordova","cordova-android","cordova-ios","cordova","plugin","network","websocket","server"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cordova-plugin-websocket-server","imports":["var wsserver = cordova.plugins.wsserver;","wsserver.start(port, options, successCallback, failureCallback);","wsserver.stop(successCallback, failureCallback);","wsserver.send(conn, msg);"]},{"cmd":"yarn add cordova-plugin-websocket-server","imports":[]},{"cmd":"pnpm add cordova-plugin-websocket-server","imports":[]}],"homepage":"https://github.com/becvert/cordova-plugin-websocket-server","github":"https://github.com/becvert/cordova-plugin-websocket-server","docs":null,"changelog":null,"pypi":null,"npm":"cordova-plugin-websocket-server","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}