SwooleSportsLive
This is a project base on PHP-Swoole and Redis to make the sports matches' text-message live broadcast easier using swoole-websocket, including its front side for mobile phone along with its CMS and server.
Install / Use
/learn @Ezharjan/SwooleSportsLiveREADME
Swoole Text Live Broadcast
This is Swoole Text Live Message Broadcasting System, and formally, is a project base on PHP-Swoole and Redis to make the sports matches' text-message live broadcast easier using swoole-websocket, including its front side for mobile phone along with its CMS and server, by Alexander Ezharjan.
<br><br>
Environment
- On Linux or Mac OS
- PHP 7 was set
- Swoole was installed
- Redis was installed
- PHP-Redis was installed
- Make is usable
- WebStorm [optional]
<br><br>
Usage
- Clone this repo;
- Going into the server's directory by
cd thisRepo/script/bin/server; - Run Redis server at local port on 6379, otherwise you can't go correct;
- Run the websocket server by
php ws.phpor bysh load.shafter ving revised the path inload.shfile content; - Open the browser and set it to phone-mode in developer mode to view the details and send text messages in
http://127.0.0.1:8811/live/detail.html; - Open the browser and set it to phone-mode in developer mode to view the admin page and send the messages in
http://127.0.0.1:8811/admin/live.html; - Login page needs ali-sdk to send validation-message to the users' phone;
- You can use
sh reload.shto restart the server smoothly; - Nginx server can be used for an agent of the server.
<br><br><br><br>
<p align="right">by Alexander Ezharjan</p> <p align="right">on 9th August,2020</p>