wave.io-server

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

Usage no npm install needed!

<script type="module">
  import waveIoServer from 'https://cdn.skypack.dev/wave.io-server';
</script>

README


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