pokeface/laravels_chat is a Laravel package for chat base on laravels.
It currently has 0 GitHub stars and 9 downloads on Packagist (latest version 1.0).
Install it with composer require pokeface/laravels_chat.
Discover more Laravel packages by pokeface
or browse all Laravel packages to compare alternatives.
Last updated
base on laravels 准备: 编辑laravels.php配置文件 1.修改
'websocket' => [
'enable' => true,
'handler' => \App\Services\WebSocketService::class,
],
'swoole_tables' => [
'ws' => [
'size' => 102400,//Table的最大行数
'column' => [// Table的列定义
['name' => 'value', 'type' => 1, 'size' => 8],
],
],
],
'register_providers' => [
\Pokeface\Chating\Providers\ChatServiceProvider::class,
],
swoole.dispatch_mode => 2
2.执行 php artisan vendor:publish --provider="Pokeface\Chating\Providers\ChatServiceProvider" php artisan migrate
可用方法: 用户: #######
PoChatUser::login($uid,$fd)
$uid---用户ID $fd---长连接标示ID