New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

eureca.io

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eureca.io

Nodejs remote procedure call supporting multiple transports

Source
npmnpm
Version
0.6.1
Version published
Weekly downloads
40
53.85%
Maintainers
1
Weekly downloads
 
Created
Source

eureca.io

eureca (Easy Unobstructive REmote CAll) is a node.js bidirectional RPC library using engine.io or sockjs as a network layer.

please visit the project web page for more code samples http://eureca.io/

Notes on : eureca.io 0.6.0 developement version

the current github repository contains a developement version witch use Primus.io to allow multiple transport layers. the stable version (on npm repository) use an internal abstraction layer that only support sockjs and engine.io.

when the developement version will become stable, I'll switch the npm version to Primus. this will not affect the existing code, everything is done behind the scene :)

Primus.io provide more flexibility since you can choose from multiple transport layers including engine.io, sockjs, socket.io, ws ...etc

this will also let me focus on eureca.io core and features.

Setup

NPM

Code examples

please check node_modules/eureca.io/examples/ for some example codes

running 1-http-server example code

open a terminal window and type and cd to node_modules/eureca.io/examples/1-http-server/

     node --harmony-proxies server.js

note the usage of --harmony-proxies command line argument, this switch enables harmony proxies witch is used by eureca.io library (for more information about harmony proxies see this link http://wiki.ecmascript.org/doku.php?id=harmony:proxies) if you don't use --harmony-proxies, eureca will still work using a workaround but this is not recommanded.

now you can either open a browser window on http://localhost:8000/ or open another terminal window in the same directory and call open a terminal window and type and cd to node_modules/eureca.io/examples/1-http-server/

     node --harmony-proxies client.js

you should see 'Hello from client' on the server side.

TODO

a documentation page will be added soon and also some more examples.

Keywords

RPC

FAQs

Package last updated on 31 Jul 2014

Related posts