Added broadcastLocallyToEveryoneExcept
This commit is contained in:
parent
bab2ef203c
commit
9856fb62ed
|
|
@ -462,7 +462,7 @@ class RedisChannelManager extends LocalChannelManager
|
||||||
unset($payload->serverId);
|
unset($payload->serverId);
|
||||||
unset($payload->appId);
|
unset($payload->appId);
|
||||||
|
|
||||||
$channel->broadcastToEveryoneExcept($payload, $socketId, $appId, false);
|
$channel->broadcastLocallyToEveryoneExcept($payload, $socketId, $appId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -164,6 +164,21 @@ class Channel
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Broadcast the payload, but exclude a specific socket id.
|
||||||
|
*
|
||||||
|
* @param \stdClass $payload
|
||||||
|
* @param string|null $socketId
|
||||||
|
* @param string|int $appId
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function broadcastLocallyToEveryoneExcept(stdClass $payload, ?string $socketId, $appId)
|
||||||
|
{
|
||||||
|
return $this->broadcastToEveryoneExcept(
|
||||||
|
$payload, $socketId, $appId, false
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the signature for the payload is valid.
|
* Check if the signature for the payload is valid.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue