mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
test websocket connection
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Domain\Settings\Controllers;
|
||||
|
||||
use Domain\Settings\Events\TestWebsocketConnectionEvent;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
|
||||
class TestWebsocketConnectionController
|
||||
{
|
||||
public function __invoke(): JsonResponse
|
||||
{
|
||||
TestWebsocketConnectionEvent::dispatch(
|
||||
auth()->user()
|
||||
);
|
||||
|
||||
return response()->json([
|
||||
'type' => 'success',
|
||||
'message' => 'The websocket test event was successfully dispatched.',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user