Closed lwl737 closed 1 year ago
$websocket->toUserId(['account_154'])->emit('message',"312321321"); 发送方 和 接收方 都收到了该信息 我该怎么样才能只发送给接收方
加broadcast()就行 $websocket->broadcast()->toUserId(['account_154'])->emit('message',"312321321");
$websocket->toUserId(['account_154'])->emit('message',"312321321");
发送方 和 接收方 都收到了该信息 我该怎么样才能只发送给接收方