Skip to content

Commit

Permalink
WIP websocket listeners to prepareApplicationForNextOperation()
Browse files Browse the repository at this point in the history
  • Loading branch information
kingIZZZY authored Dec 23, 2024
1 parent d1c95df commit 50779a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/octane.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
use Laravel\Octane\Events\TaskTerminated;
use Laravel\Octane\Events\TickReceived;
use Laravel\Octane\Events\TickTerminated;
use Laravel\Octane\Events\WebSocketMessageReceived;
use Laravel\Octane\Events\WebSocketDisconnectReceived;
use Laravel\Octane\Events\WorkerErrorOccurred;
use Laravel\Octane\Events\WorkerStarting;
use Laravel\Octane\Events\WorkerStopping;
Expand Down Expand Up @@ -102,6 +104,16 @@
//
],

WebSocketMessageReceived::class => [
...Octane::prepareApplicationForNextOperation(),
//
],

WebSocketDisconnectReceived::class => [
...Octane::prepareApplicationForNextOperation(),
//
],

OperationTerminated::class => [
FlushOnce::class,
FlushTemporaryContainerInstances::class,
Expand Down

0 comments on commit 50779a9

Please sign in to comment.