hprose / hprose-js Goto Github PK
View Code? Open in Web Editor NEWHprose is a cross-language RPC. This project is Hprose 2.0 RPC for JavaScript
License: MIT License
Hprose is a cross-language RPC. This project is Hprose 2.0 RPC for JavaScript
License: MIT License
客户端使用了setHeader('Access-Token','sfasdfad');
服务端也设置了$server->crossDomain=true;
调用的时候还是提示跨域问题:
Request header field Access-Token is not allowed by Access-Control-Allow-Headers in preflight response.
crossdomain.xml这个文件怎么用,我一直有跨域报错的问题。感谢作者
I am planning on writing an RPC layer that is capable of running on "almost" all frameworks. In order to properly support this, hprose-js needs to learn to export. This is simple. As you know NodeJS, this will look very familiar to you:
module.exports = hprose;
The idea is, to have hprose initialize on a local variable first (hprose
in my case). Then we can do something like jQuery does here: https://github.com/jquery/jquery/blob/2.1.4/dist/jquery.js#L15-L38
Do you think this is possible?
Kind regards,
Ingwie
这个如何使用 get方法?
使用websocket的时候,fd是怎么写的 这个有没有手册什么的
有没有关于js客户端推送的例子,看了一下文档不知道怎么写
i did not see any websocket code for js code.
is it support work with websocket?
从文档来看,js支持目前都是调用作为调用方的,请问后续有没有作为服务端的支持呢?
作为服务端的支持的使用场景:
技术架构:js在chrome浏览器中执行时,通过反向连接到服务集散中心(类似于mqtt)发布消息提供服务,调用方可以通过这服务集散中心去调用真正的服务。
hprose node 是很好理解的 hprose js 和 html5 则很难区分了,能不能有个页面整体介绍下。最好是个表格,区分出特性,会特别清晰。
这个要求可能很过分,不过真的很想了解清楚,谢谢,麻烦了!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.