https://github.com/5ht/remote
N2O Remote Protocol
https://github.com/5ht/remote
Last synced: 3 months ago
JSON representation
N2O Remote Protocol
- Host: GitHub
- URL: https://github.com/5ht/remote
- Owner: 5HT
- Created: 2016-09-28T01:02:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-28T01:03:35.000Z (over 9 years ago)
- Last Synced: 2025-06-03T19:50:27.011Z (11 months ago)
- Language: Erlang
- Homepage: http://5ht.co/remote.htm
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
N2O Remote Protocol
===================
Due to multiple requests this project was started to provide
robust Protocol Relay for writing N2O applications in other languages.
Sponsored languages are: Perl, JavaScript, Haskell, C/C++.
Architecture
------------

Sample Node.js N2O Application
------------------------------
```
var index = match({
'init' : function () {
wf.reg(this,sid,'room'); },
'["chat",msg]' : function (msg) {
wf.send(this.sid,'room',
tuple(atom('client'),tuple(bin(this.sid),bin(msg))))); }
'["client",[sid,msg]]' : function (sid,msg) {
wf.insert_bottom(this.sid,"history",""+sid+": "+msg+""); },
});
```
Run
---
```
$ mad dep com pla rep
```
Credits
-------
* Maxim Sokhatsky
* Andy Melnikov
OM A HUM