Simple websocket server on php that can handle 100000 connections or more.
"composer require morozovsk/websocket"
<h1>This library works, but I will not develop and support it because I will use https://github.com/walkor/Workerman</h1>
<h2>Also I recomend https://github.com/swoole/swoole-src/</h2>
##### Features:
* server works with socket_select, pecl/event or pecl/libevent.
* you can run multiple processes (one master and several workers or microservices architecture).
* integration with your framework.
##### Documentation https://github.com/morozovsk/websocket/wiki
##### Examples https://github.com/morozovsk/websocket-examples
* chat - simple chat (single daemon)
* chat2 - chat (master + worker)
* chat3 - chat (single daemon + script who can send personal message by clientId, userId or PHPSESSID)
* game - simple real time game
* game2 - real time game (port of node.js game: https://github.com/amikstrike/wn)
Run from console:
* start: "php index.php start" or "nohup php index.php start &"
* stop: "php index.php stop"
* restart: "php index.php restart" or "nohup php index.php restart &"
##### yii2-websocket https://github.com/morozovsk/yii2-websocket
##### How it works (for russian speakers):
* http://habrahabr.ru/company/ifree/blog/209864/
* http://habrahabr.ru/company/ifree/blog/210228/
* http://habrahabr.ru/company/ifree/blog/211504/
##### Fork for Laravel 4:
* https://github.com/Cherry-Pie/websocket
##### License
(The MIT License)
Copyright (c) 2014 Vladimir Goncharov
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
没有合适的资源?快使用搜索试试~ 我知道了~
移植到 Scala-Js 的 一些简单游戏_PHP_代码_下载
共9个文件
php:6个
md:2个
json:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 197 浏览量
2022-06-24
15:53:42
上传
评论
收藏 12KB ZIP 举报
温馨提示
php 上的简单 websocket 服务器,可以处理 100000 个或更多连接。 特征: 服务器与 socket_select、pecl/event 或 pecl/libevent 一起工作。 您可以运行多个进程(一个主进程和多个工作进程或微服务架构)。 与您的框架集成。 聊天 - 简单聊天(单个守护进程) chat2 - 聊天(主 + 工人) chat3 - 聊天(可以通过 clientId、userId 或 PHPSESSID 发送个人消息的单个守护程序 + 脚本) 游戏 - 简单的实时游戏 game2 - 实时游戏 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
websocket-master.zip (9个子文件)
websocket-m
composer.json 1KB
GenericSelect.php 7KB
.github
ISSUE_TEMPLATE.md 176B
Test.php 2KB
Daemon.php 10KB
README.md 2KB
Server.php 5KB
GenericEvent.php 6KB
GenericLibevent.php 7KB
共 9 条
- 1
资源评论
快撑死的鱼
- 粉丝: 2w+
- 资源: 9148
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- jdk8安装包包含linux和windows
- 亚控SCADA&MES产品在新能源造车新势力的生产过程管控案例分享
- 【4G DTU方案】STM32F103单片机驱动EC200S-4G模块通过MQTT协议上传GPS定位、DI开关量、温度数据到ONENET中移云平台(多协议方式接入)代码
- IMG_20241121_185929.jpg
- 微信小程序项目,课程设计-律师帮帮法律咨询.zip
- ACM竞赛中算法与团队策略的实践经验总结
- 153334910631064base.apk
- 视频游戏检测43-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
- 694546715158136split_config.arm64_v8a.apk
- 956428135421969split_config.xxxhdpi.apk
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功