Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

phonegap-websocket

> 编程语言
Open source

Websocket PhoneGap plugin for Android

200 stars0 likes0 views
WebsiteGitHub

About

Websocket PhoneGap plugin for Android

Websocket PhoneGap plugin for Android

Phonegap plugin which adds support for websockets under Android. The websocket client is based on Java-WebSocket.

Features

  • supports multiple protocols / drafts
  • compatible with Phonegap 3.x and installable via PhoneGap (or Cordova) CLI.
  • works well with socket.io and other WebSocket libraries.
  • supports WSS
  • supports binary data
  • falls back to native WebSocket in KitKat

The older version of the plugin (PhoneGap 2.x.x) can be found here: https://github.com/mkuklis/phonegap-websocket/tree/phonegap-2.x.x

Installation

Inside your phonegap project:

bash
cordova plugin add https://github.com/mkuklis/phonegap-websocket

Or using the phonegap CLI:

bash
phonegap local plugin add https://github.com/mkuklis/phonegap-websocket

Demo

You can find demo based on this plugin and socket.io here:

https://bitbucket.org/mkuklis/phonegap-websocket-demo

Note

If you plan to test it locally from your emulator please make sure to use 10.0.2.2 ip address when connecting to your local server.

If you plan to run it from your phone please make sure to update your config.xml file and add your server's IP address to the access tag (e.g. `` ) More information can be found here.

Contributors

  • @remy
  • @fancycode
  • @dhuyvett
  • @eliseumds
  • @MayurChandra
  • @rgillan

##License:

The MIT License

Issues· 13 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Java

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言