All Projects → Ezelia → Eureca.io

Ezelia / Eureca.io

eureca.io : a nodejs bidirectional RPC that can use WebSocket, WebRTC or XHR fallback as transport layers

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Eureca.io

Deepstream.io
deepstream.io server
Stars: ✭ 6,947 (+1937.24%)
Mutual labels:  rpc, websocket, realtime
mangband
A free online multi-player realtime roguelike game based on Angband
Stars: ✭ 54 (-84.16%)
Mutual labels:  multiplayer, realtime
SocketIOUnity
A Wrapper for socket.io-client-csharp to work with Unity.
Stars: ✭ 69 (-79.77%)
Mutual labels:  multiplayer, realtime
Jazminserver
Java based application,rpc,message,rtmp,game,sip,rtp,relay,webrtc,webssh,proxy server,message queue,mysql proxy server
Stars: ✭ 256 (-24.93%)
Mutual labels:  rpc, webrtc
Asio2
Header only c++ network library, based on asio,support tcp,udp,http,websocket,rpc,ssl,icmp,serial_port.
Stars: ✭ 202 (-40.76%)
Mutual labels:  rpc, websocket
Spring Dubbo Service
微服务 spring dubbo项目:dubbo rpc;druid数据源连接池;mybatis配置集成,多数据源;jmx监控MBean;定时任务;aop;ftp;测试;Metrics监控;参数验证;跨域处理;shiro权限控制;consul服务注册,发现;redis分布式锁;SPI服务机制;cat监控;netty服务代理;websocket;disconf;mongodb集成;rest;docker;fescar
Stars: ✭ 224 (-34.31%)
Mutual labels:  rpc, websocket
visual-ts-game-engine
Typescript project based on matter.ts implementation."This version 2 of visualjs game engine, totally different approach. Whole project is based fully dependency build. Main file is app.ts and ioc.ts. Class ioc saves singleton instances also bind. In this project html and css is also present, webpack helps and handle this type of files. GamePlay…
Stars: ✭ 15 (-95.6%)
Mutual labels:  multiplayer, webrtc
Websocket Rpc
WebSocket RPC library for .NET with auto JavaScript client code generation, supporting ASP.NET Core
Stars: ✭ 132 (-61.29%)
Mutual labels:  rpc, websocket
Zlmediakit
WebRTC/RTSP/RTMP/HTTP/HLS/HTTP-FLV/WebSocket-FLV/HTTP-TS/HTTP-fMP4/WebSocket-TS/WebSocket-fMP4/GB28181 server and client framework based on C++11
Stars: ✭ 5,248 (+1439%)
Mutual labels:  websocket, webrtc
Vosk Server
WebSocket, gRPC and WebRTC speech recognition server based on Vosk and Kaldi libraries
Stars: ✭ 277 (-18.77%)
Mutual labels:  websocket, webrtc
Hprose Nodejs
Hprose is a cross-language RPC. This project is Hprose 2.0 for Node.js
Stars: ✭ 297 (-12.9%)
Mutual labels:  rpc, websocket
Autobahn Python
WebSocket and WAMP in Python for Twisted and asyncio
Stars: ✭ 2,305 (+575.95%)
Mutual labels:  rpc, websocket
Dop
JavaScript implementation for Distributed Object Protocol
Stars: ✭ 163 (-52.2%)
Mutual labels:  rpc, realtime
UnityR
Unity3D, SignalR real-time multiplayer game
Stars: ✭ 49 (-85.63%)
Mutual labels:  multiplayer, realtime
Jstp
Fast RPC for browser and Node.js based on TCP, WebSocket, and MDSF
Stars: ✭ 132 (-61.29%)
Mutual labels:  rpc, websocket
onchat-web
A simple, beautiful, mobile-first instant messaging progressive web application.
Stars: ✭ 138 (-59.53%)
Mutual labels:  webrtc, realtime
Socket Mqtt
基于Netty+MQTT的高性能推送服务框架。支持普通Socket、MQTT、MQTT web socket协议。非常方便接入上层业务实现推送业务。
Stars: ✭ 314 (-7.92%)
Mutual labels:  rpc, websocket
Wampy
Websocket RPC and Pub/Sub for Python applications and microservices
Stars: ✭ 115 (-66.28%)
Mutual labels:  rpc, websocket
Joynr
A transport protocol agnostic (MQTT, HTTP, WebSockets etc.) Franca IDL based communication framework supporting multiple communication paradigms (RPC, Pub-Sub, broadcast etc.)
Stars: ✭ 124 (-63.64%)
Mutual labels:  rpc, websocket
Biubiu
弹幕视频与直播网站
Stars: ✭ 266 (-21.99%)
Mutual labels:  websocket, webrtc

eureca.io

eureca (Easy Unobstructive REmote CAll) is a node.js bidirectional RPC library which can Websockets or WebRTC as transport layers. It allow you to call server side function from a browser or nodejs client and vice-versa.

  • WebRTC support is based on node-webrtc.

  • Websockets support is based on Primus.io making it possible to delegate the websocket part to any supported library by primus, including : engine.io, sockjs, faye, ws and uws.

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

Documentation

The documentation.

Setup

NPM

Hello World example

Client calling server

Server side code

var Eureca = require('eureca.io');
var eurecaServer = new Eureca.Server();

eurecaServer.exports.helloServer = function (userName) {
	console.log('Hello Server from ',userName);
}

Browser client side code

<script src="/eureca.js"></script>

<body>
<script>
var client = new Eureca.Client(); 

client.ready(function (serverProxy) {

	serverProxy.helloServer();  //will call helloServer in the server side
	
});
</script>
</body>

Nodejs client side code

var Eureca = require('eureca.io');
var client = new Eureca.Client({ uri: 'http://localhost:8000/' });
 
client.ready(function (serverProxy) {
	serverProxy.helloServer();
});

More 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 server.js

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 client.js

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

License

The MIT License (MIT)

Copyright (c) 2016 Ezelia
Author : Alaa-eddine KADDOURI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].