Coder Social home page Coder Social logo

web-msg-sender's Introduction

web-msg-sender

Web消息实时推送。websocket+PHP多进程(workerman框架

注意:服务端只支持在linux系统上运行

后台发布消息页面:http://ip:3333
用户接受消息页面:http://ip:3333/web-msg-sender.html

demo

后台发消息的的页面:workerman.net:3333/
用户接受消息的页面:workerman.net/web-msg-sender.html 可以多开几个

环境部署

阿里云主机centos系统安装教程

1、命令行运行yum install php-cli php-process git php-devel php-pear libevent-devel

2、命令行运行pecl install channel://pecl.php.net/libevent-0.1.0

3、命令行运行echo extension=libevent.so > /etc/php.d/libevent.ini

4、命令行运行cd /home/ && git clone https://github.com/walkor/web-msg-sender

5、命令行运行/home/web-msg-sender/bin/workermand start

阿里云主机debian/ubuntu系统安装教程

1、命令行运行apt-get update && apt-get install php5-cli git php-pear php5-dev libevent-dev

2、命令行运行pecl install channel://pecl.php.net/libevent-0.1.0

3、命令行运行echo extension=libevent.so > /etc/php5/cli/conf.d/libevent.ini

4、命令行运行cd /home/ && git clone https://github.com/walkor/web-msg-sender

5、命令行运行/home/web-msg-sender/bin/workermand start

workerman相关参见 www.workerman.net

workerman更多有趣的应用:

小蝌蚪聊天室

多人在线flappy birds

其它

web-msg-sender's People

Contributors

walkor 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.