wave.io-server
v1.0.2
Published
The Node.JS server-side module to interact with wave.io
Downloads
2
Maintainers
Readme
The Node.JS server-side module to interact with wave.io
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 [email protected]
Credits
wave.io-nodejs using the awesome ws of Einar Otto Stangvik.
License
MIT wave.io project (c)2016 Ran Cohen