It allows you to call server side function from the client and vice-versa.
Eureca.io involves two main actors, a server and a client.
eureca.io is the central element of eureca.io.
It contains the server side code, and is considered as the trusty entity.
The server maintains references to each connected client, and allow you to call client exported methods.
eureca.io support two kinds of clients :
The clients are able to call all server exported methods.
Each eureca.io actor need to export functions to make them available for RPC.
Exporting functions is very simple, you only need to define them under "exports" namespace.
When the server exports a function, it becomes available to the clients without further action.
when clients export function, that function should be explicitly allowed in the server side.
Eureca.io can use various transport layers, making it easy to switch from one library to another, compare performance and chose the right one.
Supported transports are :
Above transport all relies on XHR and websocket and are reliable transports, they are perfect for applications.
Eureca.io also support webRTC ! which can be used for reliable or unreliable transports making it ideal for games