The Node.JS server-side module to interact with wave.io
- NPM:
$ npm install wave.io-server
- Bower:
bower install wave.io-server
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');
});
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
wave.io-nodejs using the awesome ws of Einar Otto Stangvik.
MIT wave.io project (c)2016 Ran Cohen