@@ -5,8 +5,8 @@ |
||
5 | 5 | use BeyondCode\LaravelWebSockets\Channels\Channel; |
6 | 6 | use Illuminate\Http\Request; |
7 | 7 | use Illuminate\Support\Str; |
8 | -use stdClass; |
|
9 | 8 | use Symfony\Component\HttpKernel\Exception\HttpException; |
9 | +use stdClass; |
|
10 | 10 | |
11 | 11 | class FetchChannels extends Controller |
12 | 12 | { |
@@ -73,8 +73,6 @@ |
||
73 | 73 | * Initialize the Web Socket app instance. |
74 | 74 | * |
75 | 75 | * @param string|int $appId |
76 | - * @param string $key |
|
77 | - * @param string $secret |
|
78 | 76 | * @return void |
79 | 77 | */ |
80 | 78 | public function __construct($appId, $appKey, $appSecret) |
@@ -79,7 +79,6 @@ |
||
79 | 79 | /** |
80 | 80 | * Map the app into an App instance. |
81 | 81 | * |
82 | - * @param array|null $app |
|
83 | 82 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
84 | 83 | */ |
85 | 84 | protected function convertIntoApp(?array $appAttributes): ?App |
@@ -252,7 +252,6 @@ |
||
252 | 252 | * @param \Ratchet\ConnectionInterface $connection |
253 | 253 | * @param stdClass $user |
254 | 254 | * @param string $channel |
255 | - * @param stdClass $payload |
|
256 | 255 | * @return void |
257 | 256 | */ |
258 | 257 | public function userLeftPresenceChannel(ConnectionInterface $connection, stdClass $user, string $channel) |
@@ -279,7 +279,6 @@ |
||
279 | 279 | * @param \Ratchet\ConnectionInterface $connection |
280 | 280 | * @param stdClass $user |
281 | 281 | * @param string $channel |
282 | - * @param stdClass $payload |
|
283 | 282 | * @return void |
284 | 283 | */ |
285 | 284 | public function userLeftPresenceChannel(ConnectionInterface $connection, stdClass $user, string $channel) |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace BeyondCode\LaravelWebSockets\ChannelManagers; |
4 | 4 | |
5 | -use BeyondCode\LaravelWebSockets\Channels\Channel; |
|
6 | 5 | use Clue\React\Redis\Client; |
7 | 6 | use Clue\React\Redis\Factory; |
8 | 7 | use Illuminate\Support\Str; |
@@ -6,10 +6,10 @@ |
||
6 | 6 | use BeyondCode\LaravelWebSockets\Contracts\StatisticsCollector; |
7 | 7 | use BeyondCode\LaravelWebSockets\Facades\StatisticsCollector as StatisticsCollectorFacade; |
8 | 8 | use BeyondCode\LaravelWebSockets\Facades\WebSocketsRouter; |
9 | +use BeyondCode\LaravelWebSockets\ServerFactory; |
|
9 | 10 | use BeyondCode\LaravelWebSockets\Server\Loggers\ConnectionLogger; |
10 | 11 | use BeyondCode\LaravelWebSockets\Server\Loggers\HttpLogger; |
11 | 12 | use BeyondCode\LaravelWebSockets\Server\Loggers\WebSocketsLogger; |
12 | -use BeyondCode\LaravelWebSockets\ServerFactory; |
|
13 | 13 | use Illuminate\Console\Command; |
14 | 14 | use Illuminate\Support\Facades\Cache; |
15 | 15 | use React\EventLoop\Factory as LoopFactory; |
@@ -93,7 +93,6 @@ discard block |
||
93 | 93 | /** |
94 | 94 | * Unsubscribe the connection from the channel. |
95 | 95 | * |
96 | - * @param \Ratchet\ConnectionInterface $connection |
|
97 | 96 | * @param string|int $appId |
98 | 97 | * @return void |
99 | 98 | */ |
@@ -146,7 +145,6 @@ discard block |
||
146 | 145 | * @param \Ratchet\ConnectionInterface $connection |
147 | 146 | * @param stdClass $user |
148 | 147 | * @param string $channel |
149 | - * @param stdClass $payload |
|
150 | 148 | * @return void |
151 | 149 | */ |
152 | 150 | public function userLeftPresenceChannel(ConnectionInterface $connection, stdClass $user, string $channel); |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace BeyondCode\LaravelWebSockets\Server; |
4 | 4 | |
5 | -use BeyondCode\LaravelWebSockets\Server\Loggers\WebSocketsLogger; |
|
6 | 5 | use Ratchet\WebSocket\MessageComponentInterface; |
7 | 6 | use Ratchet\WebSocket\WsServer; |
8 | 7 | use Symfony\Component\Routing\Route; |
@@ -101,7 +101,7 @@ |
||
101 | 101 | * Handle the websocket errors. |
102 | 102 | * |
103 | 103 | * @param \Ratchet\ConnectionInterface $connection |
104 | - * @param WebSocketException $exception |
|
104 | + * @param Exception $exception |
|
105 | 105 | * @return void |
106 | 106 | */ |
107 | 107 | public function onError(ConnectionInterface $connection, Exception $exception) |