Code Monkey home page Code Monkey logo

swoole_pushmsg_websocket's Introduction

swoole_pushmsg_websocket

纯php扩展swoole 1.7.18 的websocket消息推送(安卓及ios设备)

swoole 为当前最新版本 1.7.18
在centos 6.5 及 乌班图14.4server 测试通过. 其余linux服务器未知

本版本涵盖 用户版, 商户版,合作商版 的IOS及安卓APP推送.

  1. 开放端口 9501(仅供外网) 9002(内网端口)
  2. redis存储是通过lua . 若无LUA,请更换server/redis_lib.php类
  3. server.php 是服务文件
  4. push.php 是基于 CI框架文件
  5. server.php关闭和重启在start.sh里. 请自行添加swoole的平滑重启或关闭 swoole_reload
  6. server.php 可以建立集群环境. 自行修改onMessage 增加主机标识
  7. websocket 连接时, 最好自行再增一个客户端的唯一标识.
  8. ios推磅证书已删了. 请去找IOS开发人员取. 同时,注意IOS推送地址有开发和生产之分. 注意更改server/config.php 里配制

swoole_pushmsg_websocket's People

Contributors

james-rh avatar

Watchers

 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.