0.0.4 • Published 9 years ago

sdk-js v0.0.4

Weekly downloads
4
License
AGPL
Repository
github
Last release
9 years ago

Bastly SDK

Bastly offers the hability to create realtime apps. You only need to write a frew lines in your app to enable synchronization across all your connected devices.

var bastly = bastly({
                from: "testChannel",
                apiKey: "testApikey",
                callback: function (data){
                    console.log("got a response", );
                }
            });
});

bastly.send("ToWhatChannel", {likes:1});

Installation

npm

  1. Donwload
$ npm install bastly

bower

  1. Install bastly and save it as a bower dependency
$ bower install bastly --save
  1. Create a script tag right before your body close tag that points to bastly
  2. Place your script below the bastly script
<script type="text/javascript" src="path/to/bastly/script"></script>
<script type="text/javascript">
    // Your code goes here
</script>

manually

  1. Download bastly script and place it in your project folder
  2. Place bastly script right before your body close tag
  3. Place your script below the bastly script
<script type="text/javascript" src="path/to/bastly/script"></script>
<script type="text/javascript">
    // Your code goes here
</script>