All Projects → hprose → Hprose Js

hprose / Hprose Js

Licence: mit
Hprose is a cross-language RPC. This project is Hprose 2.0 RPC for JavaScript

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hprose Js

Hprose Html5
Hprose is a cross-language RPC. This project is Hprose 2.0 Client for HTML5
Stars: ✭ 237 (+78.2%)
Mutual labels:  rpc, rpc-client, serialization-library, serialize, serialization, websockets, tcp, cross-platform, cross-browser
Hprose Php
Hprose is a cross-language RPC. This project is Hprose 3.0 for PHP
Stars: ✭ 1,952 (+1367.67%)
Mutual labels:  rpc, rpc-framework, rpc-client, serializer, serialization-library, serialize, serialization, cross-platform
Hprose Golang
Hprose is a cross-language RPC. This project is Hprose for Golang.
Stars: ✭ 1,143 (+759.4%)
Mutual labels:  rpc, rpc-framework, rpc-client, serializer, serialization-library, serialize, serialization, cross-platform
Hprose Nodejs
Hprose is a cross-language RPC. This project is Hprose 2.0 for Node.js
Stars: ✭ 297 (+123.31%)
Mutual labels:  rpc, rpc-framework, rpc-client, serialization-library, serialize, serialization, tcp, cross-platform
Hprose Java
Hprose is a cross-language RPC. This project is Hprose 2.0 for Java
Stars: ✭ 542 (+307.52%)
Mutual labels:  rpc, rpc-framework, rpc-client, serializer, serialization-library, serialize, serialization, cross-platform
Hprose Delphi
Hprose is a cross-language RPC. This project is Hprose 2.0 for Delphi and FreePascal
Stars: ✭ 100 (-24.81%)
Mutual labels:  rpc, rpc-framework, rpc-client, serializer, serialization-library, serialization, cross-platform
hprose-as3
Hprose for ActionScript 3.0
Stars: ✭ 18 (-86.47%)
Mutual labels:  serialization, serializer, rpc, rpc-client, rpc-framework, serialize
Hprose
HPROSE is short for High Performance Remote Object Service Engine. It's a serialize and RPC library, the serialize library of hprose is faster, smaller and more powerful than msgpack, the RPC library is faster, easier and more powerful than thrift.
Stars: ✭ 348 (+161.65%)
Mutual labels:  rpc, serialize, serialization, cross-platform, cross-browser
Flatbuffers
FlatBuffers: Memory Efficient Serialization Library
Stars: ✭ 17,180 (+12817.29%)
Mutual labels:  rpc, serialization-library, serialization, cross-platform
Lora Serialization
LoraWAN serialization/deserialization library for The Things Network
Stars: ✭ 120 (-9.77%)
Mutual labels:  serializer, serialization-library, serialize, serialization
Getty
a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Stars: ✭ 532 (+300%)
Mutual labels:  rpc, rpc-framework, websockets, tcp
ikeapack
Compact data serializer/packer written in Go, intended to produce a cross-language usable format.
Stars: ✭ 18 (-86.47%)
Mutual labels:  serialization, serializer, serialization-library, serialize
Savegamefree
Save Game Free is a free and simple but powerful solution for saving and loading game data in unity.
Stars: ✭ 279 (+109.77%)
Mutual labels:  serializer, serialization-library, serialization
Armeria
Your go-to microservice framework for any situation, from the creator of Netty et al. You can build any type of microservice leveraging your favorite technologies, including gRPC, Thrift, Kotlin, Retrofit, Reactive Streams, Spring Boot and Dropwizard.
Stars: ✭ 3,392 (+2450.38%)
Mutual labels:  rpc, rpc-framework, rpc-client
rony
Fast and Scalable RPC Framework
Stars: ✭ 41 (-69.17%)
Mutual labels:  rpc, rpc-client, rpc-framework
Jstp
Fast RPC for browser and Node.js based on TCP, WebSocket, and MDSF
Stars: ✭ 132 (-0.75%)
Mutual labels:  rpc, serialization, tcp
Saea
SAEA.Socket is a high-performance IOCP framework TCP based on dotnet standard 2.0; Src contains its application test scenarios, such as websocket,rpc, redis driver, MVC WebAPI, lightweight message server, ultra large file transmission, etc. SAEA.Socket是一个高性能IOCP框架的 TCP,基于dotnet standard 2.0;Src中含有其应用测试场景,例如websocket、rpc、redis驱动、MVC WebAPI、轻量级消息服务器、超大文件传输等
Stars: ✭ 318 (+139.1%)
Mutual labels:  rpc, websockets, tcp
Rpc Websockets
JSON-RPC 2.0 implementation over WebSockets for Node.js and JavaScript/TypeScript
Stars: ✭ 344 (+158.65%)
Mutual labels:  rpc, rpc-framework, rpc-client
Hprose Objc
Hprose is a cross-language RPC. This project is Hprose 2.0 Client for Objective-C
Stars: ✭ 130 (-2.26%)
Mutual labels:  rpc, rpc-client, cross-platform
Grain
grain是一个极简的、组件式的RPC框架,灵活且适合渐进学习,可与任何框架整合。同时包含(系统通用多线程模型与消息通讯 || 多对多关系的分布式锁 || 基于Servlet的HTTP框架 || 基于系统通用多线程模型的Websocket框架 || 支持行级锁的多线程锁 )等组件,按需选择组件,不绑架开发者。
Stars: ✭ 577 (+333.83%)
Mutual labels:  rpc, rpc-framework, tcp

Hprose

Promises/A+ logo

Hprose for JavaScript

Join the chat at https://gitter.im/hprose/hprose-js Build Status Sauce Test Status bower version npm version License



Introduction

Hprose is a High Performance Remote Object Service Engine.

It is a modern, lightweight, cross-language, cross-platform, object-oriented, high performance, remote dynamic communication middleware. It is not only easy to use, but powerful. You just need a little time to learn, then you can use it to easily construct cross language cross platform distributed application system.

Hprose supports many programming languages, for example:

  • AAuto Quicker
  • ActionScript
  • ASP
  • C++
  • Dart
  • Delphi/Free Pascal
  • dotNET(C#, Visual Basic...)
  • Golang
  • Java
  • JavaScript
  • Node.js
  • Objective-C
  • Perl
  • PHP
  • Python
  • Ruby
  • ...

Through Hprose, You can conveniently and efficiently intercommunicate between those programming languages.

This project is the implementation of Hprose for JavaScript.

Hprose 2.0 for JavaScript Documents(中文版): https://github.com/hprose/hprose-js/wiki

Browser support

Desktop browsers

  • Google Chrome
  • Apple Safari
  • Mozilla Firefox
  • Opera
  • Microsoft Internet Explorer 6.0+
  • Netscape 7+
  • Konqueror
  • ...

Mobile browsers

  • Apple Safari on iOS
  • Google Chrome on iOS
  • Google Chrome on Android
  • Default Browser on Android
  • Internet Explorer on Windows Phone
  • Opera Mobile
  • Default Browser on WebOS
  • Default Browser on Blackberry
  • Default Browser on N9 MeeGo
  • Mozilla Firefox on N9 MeeGo
  • *Default Browser on Symbian
  • *Opera Mini
  • *Pocket IE
  • ...

All of the above browsers (except asterisk marked) support cross-domain invoking with Hprose for JavaScript.

Hybird app support

  • ionic + cordova (http, tcp, websocket)
  • Chrome extentions (http, tcp, websocket)
  • APICloud (http, tcp*)
  • DCloud (http)
  • AppCan (http)
  • DeviceOne (http)
  • ... (http, websocket)

TCP is only available on iOS for APICloud, because there is a bug of APICloud Android SDK, and they don't want to fix this bug.

Usage

You don't need use the javascript source files. You only need include hprose.js in your html.

The file FlashHttpRequest.swf you can put it on anywhere, and then specify its load path by setting the flashpath attribute in the script tag. If you omit this attribute, the default path is current path.

Exception Handling

If an error occurred on the server, or your service function/method throw an exception, it will be sent to the client. You need to pass an error callback function after succuss callback function to receive it. If you omit this callback function, the client will ignore the exception, like never happened.

For example:

<html>
<head>
<script type="text/javascript" src="hprose.js" flashpath="/"></script>
</head>
<body>
<script type="text/javascript">
    var client = hprose.Client.create("http://www.hprose.com/example/", ["hello"]);
    client.hello("World!")
    .then(function(result) {
        alert(result);
    }, function(err) {
        alert(err);
    });
</script>
</body>
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].