Skip to content

HasConduitsMethods ​

php
trait Zairakai\LaravelTwitch\Services\Concerns\HasConduitsMethods

Twitch Conduits API methods.

Conduits are a transport for EventSub that enables high-scale, multi-shard deployments.

Source: src/Services/Concerns/HasConduitsMethods.php

Methods ​

createConduit() ​

php
public function createConduit(int $shardCount): Conduit

Create a new conduit for routing EventSub subscriptions to multiple shards.

ParameterDescription
$shardCountNumber of shards (1-20000)

deleteConduit() ​

php
public function deleteConduit(string $conduitId): void

Delete a specified conduit.

getConduits() ​

php
public function getConduits(): DataCollection

Get information about conduits for the app access token.

Returns DataCollection<int, Conduit>

getConduitShards() ​

php
public function getConduitShards(string $conduitId, string $status = null, string $after = null): PaginatedResult

Get the shards associated with a conduit.

ParameterDescription
$statusFilter by shard status (enabled, webhook_callback_verification_pending, etc.)

Returns PaginatedResult<ConduitShard>

updateConduit() ​

php
public function updateConduit(string $conduitId, int $shardCount): Conduit

Update the number of shards for a conduit.

ParameterDescription
$shardCountNew number of shards

updateConduitShards() ​

php
public function updateConduitShards(string $conduitId, array $shards): DataCollection

Update the transport for shards of a conduit.

ParameterDescription
$shardsShards to update

Returns DataCollection<int, ConduitShard>

Documentation of 4.1.4 , built from a03e949 on 4.1.4 by pipeline #2949087255 on 2026-10-11.