Private
Public Access
1
0

chg: dev: replace the legacy gos/web-socket-bundle & replace it with Mercure protocol #4

This commit is contained in:
2026-04-09 22:00:53 +02:00
parent b55c223d8a
commit 7219471a86
33 changed files with 1198 additions and 2324 deletions

View File

@@ -10,8 +10,7 @@
namespace App\Interfaces;
use Ratchet\ConnectionInterface;
use Ratchet\Wamp\Topic;
use Symfony\Component\Security\Core\User\UserInterface;
/**
* Interface TopicManagerInterface
@@ -25,9 +24,9 @@ use Ratchet\Wamp\Topic;
*/
interface TopicManagerInterface
{
public function subscribe(Topic $topic, ConnectionInterface $connection): void;
public function subscribe(string $gameAssoc, string $userName, ?UserInterface $user): void;
public function unSubscribe(Topic $topic, ConnectionInterface $connection): void;
public function unSubscribe(string $gameAssoc, string $userName): void;
public function publish(Topic $topic, ConnectionInterface $connection, $event): void;
public function publish(string $gameAssoc, string $userName, array $event): void;
}

View File

@@ -1,28 +0,0 @@
<?php declare(strict_types=1);
/**
* This file is part of the SplendidBear Websites' projects.
*
* Copyright (c) 2019 @ www.splendidbear.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Interfaces;
use Doctrine\ORM\EntityManagerInterface;
/**
* Interface WebsocketManagerInterface
*
* @package App\Interfaces
* @author Lang <https://www.splendidbear.org>
* @category Interface
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html GNU Lesser General Public License
* @link www.splendidbear.org
* @since 2026. 04. 09.
*/
interface WebsocketManagerInterface
{
public function reConnect(EntityManagerInterface $entityManager): ?EntityManagerInterface;
}