https://github.com/sitegui/asyncprotocol
An async, call-return-throw oriented protocol that sits above TCP
https://github.com/sitegui/asyncprotocol
Last synced: over 1 year ago
JSON representation
An async, call-return-throw oriented protocol that sits above TCP
- Host: GitHub
- URL: https://github.com/sitegui/asyncprotocol
- Owner: sitegui
- License: mit
- Created: 2013-08-16T16:50:25.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-03-09T21:46:27.000Z (over 12 years ago)
- Last Synced: 2025-03-06T20:34:52.455Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 371 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# asyncProtocol
An async, call-return-throw oriented protocol that sits above TCP
## For what?
This protocol is aimed for applications that need to transmit a lot of structured data (like large arrays) from a client to a server.
The client can "call" a function in the server and get the result (or an exception).
## Details
This is a light-weight protocol that uses very little meta-data (when compared to JSON, for example). In order to do that, it requires that both endpoints (client and server) know the types of the arguments for each call/return/exception.
It's asynchronous protocol, so a client can send another call before all previous calls are answered. Also, the server doesn't need to answer the calls in order.
## API
Initially, the API will be implemented in JavaScript (for Node.js). Afterwards, the client-side will be ported to JavaScript for browsers (with a WebSocket gate).