wave.io-server

1.0.2 • Public • Published


The Node.JS server-side module to interact with wave.io
Version npmNPM DownloadsDependencies

Installation

  • NPM:
$ npm install wave.io-server
  • Bower:
bower install wave.io-server

Quick start

At the Client: (using wave.io)

<script src="/wave.io/wave.io.min.js"></script>
<script>
    http.seturl("localhost:8080");   
    http.post("/postest",{wave:"Is Awesome"},function(data){
        console.log(data);
    });
</script>

At yor Node server: (using wave.io-nodejs)

var http = require('http');
var server = http.createServer(function(req, res){ }).listen(8080);
var router = require('wave.io-server')(server);
router.post('/postest',function(req,res){
    console.log(req.data);
    res.send('Ya I Know');
});

The flow of this example:

Contribute

If you wanna contribute to wave, You can help with server side module like wave.io-nodejs, which implements the principles from here, for other languages like (C#, Java, PHP, Ruby, Python, Perl).
Your more then welcome to email me any time Rannn505@outlook.com

Credits

wave.io-nodejs using the awesome ws of Einar Otto Stangvik.

Don't forget a Star :) GitHub Star

License

MIT wave.io project (c)2016 Ran Cohen

Package Sidebar

Install

npm i wave.io-server

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • rannn505