Giter VIP home page Giter VIP logo

pomeloclient-ios-websocket's Introduction

PomeloClient iOS WebSocket

自己写写, 练习一下

之前一直写 PHP, 偶尔接触 JavaScript 写前端.

好吧, 这是我第一次写 Objective-C 的程序, 所以质量欠佳. 但勇气可嘉^_^.

代码方面, 基于 JavaScript 版本的 pomelo-jsclient-websocketpomelo-protobuf 一行一行的抄写. 结构, 逻辑全都 COPY 过来.

API 写法完全使用了 0.2 版本的 pomelo-iosclient. 目的是为了无痛升级. 你可以使用已经写好了的兼容文件, import 一下便可以无需修改你程序的代码直接用了.

DEMO

这是我用老版 ioschat 改的: https://github.com/ETiV/pomelo-ioschat-websocket 程序主流程的代码, 没改过.

召唤测试

现在唯一的缺憾是缺少测试, 因为我对 protobuf 也是第一次接触, 跟 Objective-C 一样. 通过 iosChat 测试, 只能测一个 onChat 事件…不过发中英文的消息都没有问题.

感谢Hatsune Miku, 各种演唱会陪我熬夜.

pomeloclient-ios-websocket's People

Contributors

etiv avatar geforcelee avatar sforce100 avatar

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.