• Stars
    star
    203
  • Rank 192,890 (Top 4 %)
  • Language
    Java
  • Created over 11 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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:

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

More Repositories

1

depot.js

๐Ÿ“ฆ depot.js is a storage library with a simple API
JavaScript
247
star
2

asEvented

Micro event emitter which provides the observer pattern to JavaScript object.
JavaScript
97
star
3

backbone.service

Backbone service for non restful or semi restful apis
JavaScript
44
star
4

tweetstream

Twitter Stream API + Google Map API + Backbone.js + Node.js = tweetstream
JavaScript
15
star
5

flight-todo

Todo application implemented in Twitter Flight.
JavaScript
11
star
6

backbone-nowjs

A nowjs connector for backbone
JavaScript
10
star
7

checkers

checkers with node.js
JavaScript
6
star
8

tictactoe

tic tac toe in JavaScript backed by Backbone
JavaScript
5
star
9

slidebox

Zepto plugin which turns checkboxes into iPhone like slideboxes.
JavaScript
3
star
10

extend

JavaScript inheritance
JavaScript
3
star
11

flight-tiny-demo

tiny demo built in flight
JavaScript
2
star
12

panel

panel component
JavaScript
2
star
13

gofjs

Game of life
JavaScript
2
star
14

twitwid

twitwid
JavaScript
2
star
15

packit

JavaScript template compressor based on Node.js
JavaScript
2
star
16

functional_patterns

Collection of higher order functions in JavaScript.
JavaScript
1
star
17

jquery.tmplloader

remote template loader
JavaScript
1
star
18

leonardo

javascript canvas library
JavaScript
1
star
19

sierpinski-triangle

experimenting with processing.js
JavaScript
1
star
20

typemachine

Simple jQuery plugin which simulates live typing.
JavaScript
1
star
21

sinatra-geapp

sinatra on google engine deployment from windows
1
star
22

fun-with-lisp

learning common lisp
Common Lisp
1
star
23

DirectedGraph

Directed Graph in JavaScript
JavaScript
1
star
24

databind.jquery

jQuery plugin for binding elements to other elements via html
JavaScript
1
star
25

ngPersistence

JavaScript
1
star
26

asPromise

Micro promise implementation which behaves well with any JavaScript object.
JavaScript
1
star
27

fcmanager

FCManager - jQuery plugin which manages FullCalendar
JavaScript
1
star