youzan/zanwebsocket-boilerplate

Name: zanwebsocket-boilerplate

Owner: ??

Description: null

Created: 2017-10-30 04:02:13.0

Updated: 2017-10-30 07:15:51.0

Pushed: 2017-10-30 07:27:42.0

Homepage: null

Size: 15

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ZanWebSocketDemo

zan php websocket server demo

????
  1. ?? zan??
  2. ??composer
  3. ???????composer update
  4. ??php.ini
    hp.RUN_MODE = test
    hp.DEBUG = true
    
  5. ??http server php bin/websocket
  6. ?????bin/test.html
zan??websocket???????
????

"path": "/module/controller/action",
"data": "xxx"

????

"code": 0,
"data": "xxx"

7.??

rver: 
php bin/websocket
ient:
cd test
phpunit --bootstrap bootstrap.php WebSocketTest

8.controller?? ??????controller?????


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.