a msgpack-rpc + α implementation for JavaScript language.
- Java Runtime ver.1.6 or later
for JsTestDriver, closure-compiler and jsdoc-toolkit
$ make $ cp src/linear.min.js /path/to/somewhere
-
all
same as pack
NOTE
linear.js and msgpack.codec.js are packed with by closure-compiler.
http://code.google.com/p/closure-compiler/ -
pack
Pack linear.js and msgpack.codec.js into linear.min.js and linear.debug.js
You can use linear apis only including linear.min.js or linear.debug.js at your web application.
// minified <script type='text/javascript' src='linear.min.js'>
// not minified <script type='text/javascript' src='linear.debug.js'>
-
check-all/check
Do test linear.js on localhost with by JsTestDriver.
http://code.google.com/p/js-test-driver/
NOTE for tests
Test servers use TCP port number 4224 to 4229. -
start-servers
Only run test servers for linear.js. -
run-tests
Run tests.
You can test linear.js with mobile browsers and remote browsers as follows.- make start-servers
- Access http://host:port/ with your remote browsers.
- make run-tests
-
stop-servers
Kill test servers. -
doc
Create api document for linear-js.
NOTE for documentation
Documents are created with by jsdoc-toolkit.
http://code.google.com/p/jsdoc-toolkit/ -
clean
Cleanup dirs and remove documents, linear.min.js and linear.debug.js.
When you use HTTP Authentication(RFC2617), WebSocket transport to cross origin will not work well on some browsers.
Please refer to this issue for HTTP Authentication.
- major
APIs and specifications are changed significantly, so you need to update server and client applications at the same time. - minor
APIs are changed only slightly, so you need to rewrite applications if using appropriate APIs. - revision
Bug fixes and security fixes etc.
The MIT License (MIT)
See LICENSE for details.
And linear-js is using patched version of mspack.codec.js.
Original code is at https://github.com/uupaa/msgpack.js
/*!{id:msgpack.codec.js,ver:1.05,license:"MIT",author:"uupaa.js@gmail.com"}*/
And diff from original code is at deps/msgpack.js/uuppa_msgpack_codec_js.diff