Skip to content

strukturag/phonegap-websocket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Websocket PhoneGap plugin for Android

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

The plugin works well with socket.io.

Compatible with PhoneGap 3.0.x and installable via the PhoneGap (or Cordova) CLI.

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

Installation

Inside your phonegap project:

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

Or using the phonegap CLI:

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. <access origin="YOUR_IP_ADDRESS:YOUR_PORT" /> ) More information can be found here.

Contributors

##License:

The MIT License

About

Websocket PhoneGap plugin for Android

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 77.7%
  • JavaScript 22.3%