Download the PHP package sparkinzy/dcat-websocket without Composer
On this page you can find all versions of the php package sparkinzy/dcat-websocket. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sparkinzy/dcat-websocket
More information about sparkinzy/dcat-websocket
Files in sparkinzy/dcat-websocket
Download sparkinzy/dcat-websocket
More information about sparkinzy/dcat-websocket
Files in sparkinzy/dcat-websocket
Vendor sparkinzy
Package dcat-websocket
Short Description 为Dcat Admin 一键集成websocket功能
License MIT
Homepage https://github.com/sparkinzy/dcat-websocket
Package dcat-websocket
Short Description 为Dcat Admin 一键集成websocket功能
License MIT
Homepage https://github.com/sparkinzy/dcat-websocket
Please rate this library. Is it a good library?
Informations about the package dcat-websocket
Dcat Admin Extension
1.安装依赖包
2.添加配置 .env
3.修改配置
首先要把 config/app.php 中的 App\Providers\BroadcastServiceProvider::class 注释打开
且 注释 App\Providers\BroadcastServiceProvider::class 中的 Broadcast::routes();
4.添加私有渠道授权(公共渠道可忽略此步骤)
在 routes/channels.php 中加入我们最开始,在前端 JS 中写的监听频道:
5.广播配置
在 config/broadcasting.php 中的 connections.pusher 下加入两个配置信息:
6.启动socket监听
Admin/bootstrap.php 启用
前端向后端发送消息
All versions of dcat-websocket with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
dcat/laravel-admin Version ~2.0
pusher/pusher-php-server Version ~4.0
beyondcode/laravel-websockets Version ^1.13
dcat/laravel-admin Version ~2.0
pusher/pusher-php-server Version ~4.0
beyondcode/laravel-websockets Version ^1.13
The package sparkinzy/dcat-websocket contains the following files
Loading the files please wait ....