项目作者: suntianxiang

项目描述 :
a web chat rom example build by react, reactphp
高级语言: PHP
项目地址: git://github.com/suntianxiang/websocket_chat_example.git
创建时间: 2018-05-11T02:13:04Z
项目社区:https://github.com/suntianxiang/websocket_chat_example

开源协议:MIT License

下载


Web chat room example

What the example has?

  1. functionality of an RFC-6455 WebSockets server build by reactphp
  2. a chat room logic server
  3. a web page example build by react

try

  • run server
    1. > git clone https://github.com/suntianxiang/websocket_chat_example.git
    2. > cd websocket_chat_example/backend
    3. > composer install
    4. > cd ../frontend
    5. > npm install | yarn install
    6. > cd ../backend/server
    7. > php http.php &
    8. > php chat_room_server.php &
  • visit http://localhost:8000/

requires

  1. php >= 7.0