Giter Club home page Giter Club logo

avos-chat's Introduction

AVOS Cloud Chat SDK for JavaScript

NOTE

本SDK是在AVOS Cloud(现LeanCloud)的实时通讯服务早期开发的,当时官方只有iOS/Android SDK。 现时普通用户建议使用LeanCloud的官方SDK:leancloud/js-realtime-sdk

Requirements

  1. ECMAScript 5
  2. WebSocket、XMLHttpRequest、Promise

没有原生支持上述特性的老浏览器需要自行 shim。 Node.js 下用的分别是 ws、xmlhttprequest、es6-promise 模块。

API 设计

  1. 使用 ES6 的 Promise API
  2. 使用 Node.js 的 EventEmitter 风格的事件接口

Coding style

  1. 使用 npm“funny”风格 ,但是:

    • 缩进使用 tab
    • 不前置逗号
  2. 关于分号和换行的补充

    1. 除去注释后,若语句结束于行末,不额外加“;”
    2. 除去注释后,若语句开始于行首,且语句的第一个符号为“(”、“[”、“/”、“+”、“-”之一,在该符号前加“;”或“void”
    3. 单个语句如需折行,需确保折行时处于显著的未结束状态(如行末为二元运算符,或 open 括号)

版权和许可

© 2014, 2015 百姓网

Copyright (c) 2014, 2015 baixing.com
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

avos-chat's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

avos-chat's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

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.