Skip to content

Commit

Permalink
Added ack as conveyor option.
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharthesavior committed Apr 27, 2024
1 parent b7cbc1c commit 69332bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/jacked-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
env('JACKED_SERVER_STATIC_LOCATIONS', '/imgs,/css,/js,/build'),
),
],
'conveyor-options' => [],

// ------------------------------------------------------------
// Logging
Expand Down
4 changes: 3 additions & 1 deletion src/Services/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ public function run(): void
mode: config('jacked-server.server-type', OpenSwooleBaseServer::POOL_MODE),
ssl: $ssl ? Constant::SOCK_TCP | Constant::SSL : Constant::SOCK_TCP,
serverOptions: $this->getServerConfig($ssl),
conveyorOptions: config('jacked-server.conveyor-options', []),
conveyorOptions: array_merge(config('jacked-server.conveyor-options', []), [
ConveyorConstants::USE_ACKNOWLEDGMENT => true, // required for broadcasting
]),
eventListeners: [
ConveyorConstants::EVENT_SERVER_STARTED => fn(ServerStartedEvent $event) =>
$this->handleStart($event->server),
Expand Down

0 comments on commit 69332bc

Please sign in to comment.