Skip to content

NOAJ (Not Only Asynchronous JavaScript) is a communication framework which provides AJAX-like API based on WebSocket.

License

Notifications You must be signed in to change notification settings

heckpsi-lab/noaj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOAJ, async network of next-gen

What is NOAJ

NOAJ (Not Only Asynchronous JavaScript, formerly called yukkikaze.js) is a communication framework which provides AJAX-like API based on WebSocket. It could dynamically manage the socket pool to reduce the redundant package headers. It could also fallback to AJAX if the browser does not support WebSocket feature.

Versions

Code Climate

Front-end

Alpha Beta Release
TypeScript 0.0.6-alpha 0.0.5-beta
JavaScript 0.0.6-alpha 0.0.5-beta
Android (Java)
iOS (Swift)

Back-end

Ruby (Sinatra) Ruby (Rails) Node.js C++11
  • Alpha versions always provide the latest features
  • Beta versions are developing versions with 70%+ code coverage.
  • Release versions provide stable APIs that would be seldomly changed or removed with 100% code coverage.

Features

  • Virtual Request, no real connections or requests managed by developers. The library would find the most optimized way to communicate with server.
  • AJAX-like API, zero learning cost as long as you have ever dealed with AJAX development.
  • Compressed WebSocket, internal compression engine, written in pure TypeScript/JavaScript code, providing fast compression on most browsers.
  • AJAX-Fallback, fall back to typical AJAX if the browser still does not support WebSocket.

Getting Started

N.url = 'foo.bar/noaj';
N.secured = false; // turn to 'true' if using https and wss

N.request({
    route: '/hello'
}).send();

N.request({
    route: '/hello',
    data: {foo: 'bar'}
    success: function(data){
        console.log(data);
}}).send();

Developing Status

Feature Alpha Beta Release Note
AJAX-like API
WebSocket
AJAX Fallback
Compression ❗️ ❗️ To be tested
Garbage Collection
GC Tuning
Secured Communication
Async Event Push
Compression Fallback
Optional Reserved Idles

About

NOAJ (Not Only Asynchronous JavaScript) is a communication framework which provides AJAX-like API based on WebSocket.

Resources

License

Stars

Watchers

Forks

Packages

No packages published