Giter Site home page Giter Site logo

yukkikaze.js's Introduction

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'}
});

yukkikaze.js's People

Contributors

dsh0416 avatar

Stargazers

venessa avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

greatljn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.