A "drag-and-drop" library for appengine allowing cross platform realtime connections between devices with minimum boilerplate.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
demo/messenger
documentation
server/build/device
.gitignore
readme.md

readme.md

#Device.js

Contributers · Hunter Larco

Device.js provides an easier alternative to appengine's channel api. Piggybacking on the channel api, Device.js provides a framework for connecting and sending data between devices with only a few lines of code. It mediates routing data, formatting data, and socket event handlers, bundling it all into a single easy-to-use class.

Example

Device.register();
Device.connect('Mobile Device');
Device.send('hello.world', {
  content: "We're Sending Live Data!"
});

Device.addEventListener('message', OnMessage);

Important Links