\App\Http\Controllers\WebSocketGroupChatController

Class GroupChatController 测试内容可删除 WebSocket

Summary

Methods
Properties
Constants
__construct()
send()
home()
sendChat()
online()
getChatRecord()
$clientId
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$clientId

$clientId : 

Type

Methods

__construct()

__construct(string|null  $clientId = null) 

WebSocket constructor.

Parameters

string|null $clientId

全局唯一的客户端socket连接标识

send()

send(\Symfony\Component\HttpFoundation\Response  $response) 

发送数据

Parameters

\Symfony\Component\HttpFoundation\Response $response

home()

home() : \Illuminate\Contracts\View\View

homePage

Returns

\Illuminate\Contracts\View\View

sendChat()

sendChat(  $collect) 

Parameters

$collect

online()

online() 

getChatRecord()

getChatRecord()