Skip to content

[Deprecated] Yukkikaze.js is now a part of heckpsi-lab/noaj, this branch is no longer maintained.

License

Notifications You must be signed in to change notification settings

dsh0416/yukkikaze.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yukkikaze.js

DEPRECATED

Yukkikaze.js is now a part of heckpsi-lab/noaj, this branch is no longer maintained.

What is Yukkikaze.js

Yukkikaze.js is a protocol and framework building on WebSocket, providing realtime listener and low cost ajax-like request on front-end browsers.

Yukkikaze.js provides a set of APIs to build its own protocol on the WebSocket, making it easy to use. For developing realtime app, yukkikaze.js would provide event listener on specific event you defined, and it would be run on a separate connection to keep the realtime efficiency. It also provides ajax-like request APIs to deal with asynchronous requests. It would manage the connection numbers itself to reduce the packages' size and the connection times to the server, releasing the cost of the servers than traditional ajax.

Developing Status

Front-end framework:

Alpha: No release

Beta: No release

Release: No release

Back-end framework:

Ruby (for sinatra): Gem Version

Ruby (for Rails): No release

Node.js (for express.js): No release

C++ (for safaia-framework): No release

Go (for Martini): No release

Rust: No Release

Getting Started

Ykk.ajaxUrl = "http://foo.com/yukkikaze-ajax";
Ykk.ajax({
  'api': '/hello-world',
  'data': {'foo': 'bar'}
  'success': function(data){
    alert(data);
  },
  'failure': function(code, data){
    alert(code);
    alert(data);
  }
}).send();
chat = Ykk.realtime({
  'url': 'http://foo.com/chat-room',
  'data': {'foo': 'bar'},
  'event': {
    'foo': function(data){alert('foo: ' + data)},
    'bar': function(data){alert('bar: ' + data)}
   }
}).start();
chat.send({
  'type': 'send-msg',
  'data': {'msg': 'hello'}
});

About

[Deprecated] Yukkikaze.js is now a part of heckpsi-lab/noaj, this branch is no longer maintained.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published