sdk-js
v0.0.4
Published
Bastly SDK for browsers
Downloads
3
Maintainers
Readme
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
- Donwload
$ npm install bastly
bower
- Install bastly and save it as a bower dependency
$ bower install bastly --save
- Create a script tag right before your
body
close tag that points to bastly - 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
- Download bastly script and place it in your project folder
- Place bastly script right before your
body
close tag - 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>