Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Interprocessus communication with the help of NodeJS, WebSockets and VarStream.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 documents
Octocat-spinner-32 src
Octocat-spinner-32 www
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gruntfile.js
Octocat-spinner-32 LICENCE
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
Octocat-spinner-32 vars.dat
README.md

WebSocketIPC

WebSocketIPC is a websocket server allowing you to synchronize a variable tree between each clients of the server.

It also synchronize the variable tree beetween each worker of the cluster (one per CPU).

Finally, it allows you to pipe a Unix VarStream in and out or to simply visualize the stream in the console and manually type VarStream content from your console.

It's a proof of concept of the VarStream project.

WebSocketIPC program is free to use for any purpose (GNU/GPL).

How to use

On your console :

npm install
node src/backend.js

Build

To build the front-end :

npm install -g browserify
node_modules/browserify/bin/cmd.js src/frontend.js -o www/javascript/script.js 

Note: The Grunt plug-in currently embed an old browserify version. It should work when updated.

Test

Open index.html multiple times on your browsers to test WebSocketIPC synchronization.

Contributors

  • Nicolas Froidure - @nfroidure

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/

Something went wrong with that request. Please try again.